mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
A 'Add users' link is added to the navigation bar (only when an admin is logged in), which takes the user to /signup.
Fixes #248. #248. #248. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@216 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
49cde85039
commit
a80a7a4be0
2 changed files with 4 additions and 3 deletions
|
|
@ -37,6 +37,9 @@
|
|||
<li><a href="javascript:toggleAll('notes','block')" accesskey="S" title="Show all notes">Show</a></li>
|
||||
<li><a href="javascript:toggleAll('notes','none')" accesskey="H" title="Hide all notes">Hide</a></li>
|
||||
<li><%= link_to(image_tag("feed-icon", :size => "16X16", :border => 0), {:controller => "todo", :action => "feeds"}, :title => "See a list of available feeds" ) %></li>
|
||||
<% if @user.is_admin? -%>
|
||||
<li><%= link_to "Add users", :controller => "login", :action => "signup" %>
|
||||
<% end -%>
|
||||
<li><%= link_to "Logout (#{@user.login}) »", :controller => "login", :action=>"logout"%></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ a.show_notes:hover {background-image: url(../images/notes_on.png); background-re
|
|||
|
||||
#navcontainer {
|
||||
margin: 15px;
|
||||
width: 822px;
|
||||
}
|
||||
|
||||
#navlist {
|
||||
|
|
@ -148,8 +147,7 @@ h2 a:hover {
|
|||
}
|
||||
|
||||
#input_box {
|
||||
margin-left: 490px;
|
||||
margin-top: 20px;
|
||||
margin: 20px 15px 0px 490px;
|
||||
padding: 0px 15px 0px 15px;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue