<% content_for(:secondary_links) do %>
  • <%= link_to "Listing", users_path %>
  • <%= link_to "Search", search_users_path %>
  • <% if CurrentUser.is_anonymous? %>
  • <%= link_to "Sign up", new_user_path %>
  • <% end %> <% if @user && !CurrentUser.is_anonymous? %>
  • |
  • <% if @user.id == CurrentUser.id %>
  • <%= link_to "Settings", edit_user_path(CurrentUser.user) %>
  • <%= link_to "Profile", user_path(CurrentUser.user) %>
  • <%= link_to "Messages #{CurrentUser.dmail_count}", dmails_path(:search => {:owner_id => CurrentUser.id, :to_id => CurrentUser.id}) %>
  • <% else %>
  • <%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %>
  • <% end %> <% if !CurrentUser.is_privileged? %>
  • <%= link_to "Upgrade", upgrade_information_users_path %>
  • <% end %> <% if CurrentUser.is_admin? %>
  • <%= link_to "Promote", edit_admin_user_path(@user) %>
  • <% end %>
  • |
  • <%= link_to "Sign out", session_path, :method => :delete %>
  • <% end %>
    <% end %>