<% content_for(:secondary_links) do %>
  • <%= render "users/quick_search" %>
  • <%= link_to "Listing", users_path %>
  • <%= link_to "Search", search_users_path %>
  • <% if CurrentUser.user.is_anonymous? %>
  • <%= link_to "Sign up", new_user_path %>
  • <% end %> <% if @user && !@user.new_record? && !CurrentUser.user.is_anonymous? %>
  • |
  • <% if @user.id == CurrentUser.user.id %>
  • <%= link_to "Settings", edit_user_path(CurrentUser.user) %>
  • <%= link_to "Profile", user_path(CurrentUser.user) %>
  • <%= link_to "Messages #{CurrentUser.user.dmail_count}", dmails_current_folder_path %>
  • <% if !@user.is_platinum? %>
  • <%= link_to "Upgrade", new_user_upgrade_path %>
  • <% end %> <% else %>
  • <%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %>
  • <% if !@user.is_platinum? %>
  • <%= link_to "Gift upgrade", new_user_upgrade_path(:user_id => @user.id) %>
  • <% end %> <% end %> <% if CurrentUser.user.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 %>