<% content_for(:secondary_links) do %>
  • <%= render "users/quick_search" %>
  • <%= 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 && !@user.new_record? && !CurrentUser.is_anonymous? %>
  • |
  • <% if @user.id == CurrentUser.id %>
  • <%= link_to "Settings", edit_user_path(CurrentUser.user) %>
  • <% if @user.is_gold? %>
  • <%= link_to "Edit subscriptions", tag_subscriptions_path %>
  • <% end %>
  • <%= link_to "Profile", user_path(CurrentUser.user) %>
  • <%= link_to "Messages #{CurrentUser.dmail_count}", dmails_current_folder_path %>
  • <% else %>
  • <%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %>
  • <% end %> <% if !CurrentUser.is_gold? %>
  • <%= link_to "Upgrade", upgrade_information_users_path %>
  • <% end %> <% if CurrentUser.is_moderator? %>
  • <%= link_to "Promote", edit_admin_user_path(@user) %>
  • <% if @user.is_banned? %>
  • <%= link_to "Unban", ban_path(@user.recent_ban) %>
  • <% else %>
  • <%= link_to "Ban", new_ban_path(:ban => {:user_id => @user.id}) %>
  • <% end %> <% end %>
  • |
  • <%= link_to "Sign out", sign_out_session_path %>
  • <% end %>
    <% end %>