* Replace /session/new with /login and /session/sign_out with /logout. * Rename 'sign in' to 'login'. This changes are to make urls cleaner and terminology more consistent.
24 lines
1015 B
Plaintext
24 lines
1015 B
Plaintext
<menu id="main-menu" class="main">
|
|
<% if CurrentUser.is_anonymous? %>
|
|
<%= nav_link_to("Login", login_path) %>
|
|
<% else %>
|
|
<%= nav_link_to("My Account #{CurrentUser.dmail_count}", profile_path) %>
|
|
<% end %>
|
|
<%= nav_link_to("Posts", posts_path) %>
|
|
<%= nav_link_to("Comments", comments_path(:group_by => "post")) %>
|
|
<%= nav_link_to("Notes", notes_path) %>
|
|
<%= nav_link_to("Artists", artists_path) %>
|
|
<%= nav_link_to("Tags", tags_path) %>
|
|
<% if CurrentUser.is_builder? %>
|
|
<%= nav_link_to("Aliases", tag_aliases_path) %>
|
|
<%= nav_link_to("Implications", tag_implications_path) %>
|
|
<% end %>
|
|
<%= nav_link_to("Pools", gallery_pools_path) %>
|
|
<%= nav_link_to("Wiki", wiki_page_path("help:home")) %>
|
|
<%= nav_link_to("Forum", forum_topics_path, :class => (CurrentUser.has_forum_been_updated? ? "forum-updated" : nil)) %>
|
|
<% if CurrentUser.is_moderator? %>
|
|
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
|
|
<% end %>
|
|
<%= nav_link_to("More »", site_map_path) %>
|
|
</menu>
|