+ <li>
+ <%= link_to t(".diary"), :controller => "diary_entries", :action => "index", :display_name => @user.display_name %>
+ <span class='badge count-number'><%= number_with_delimiter(@user.diary_entries.size) %></span>
+ </li>
+ <li>
+ <%= link_to t(".comments"), diary_comments_path(@user) %>
+ </li>
+ <li>
+ <% if current_user and current_user.friends_with?(@user) %>
+ <%= link_to t(".remove as friend"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
+ <% elsif current_user %>
+ <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name), :method => :post %>
+ <% else %>
+ <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name) %>
+ <% end %>
+ </li>
+
+ <% if @user.blocks.exists? %>
+ <li>
+ <%= link_to t(".block_history"), user_blocks_on_path(@user) %>
+ <span class='badge count-number'><%= number_with_delimiter(@user.blocks.active.size) %></span>
+ </li>
+ <% end %>
+
+ <% if @user.moderator? and @user.blocks_created.exists? %>
+ <li>
+ <%= link_to t(".moderator_history"), user_blocks_by_path(@user) %>
+ <span class='badge count-number'><%= number_with_delimiter(@user.blocks_created.active.size) %></span>
+ </li>
+ <% end %>
+
+ <% if can?(:revoke_all, UserBlock) and @user.blocks.active.exists? %>
+ <li>
+ <%= link_to t(".revoke_all_blocks"), revoke_all_user_blocks_path(@user) %>
+ </li>
+ <% end %>
+
+ <% if can?(:create, UserBlock) %>
+ <li>
+ <%= link_to t(".create_block"), new_user_block_path(@user) %>
+ </li>
+ <% end %>
+
+ <% if current_user and @user.id != current_user.id %>
+ <li>
+ <%= report_link(t(".report"), @user) %>
+ </li>
+ <% end %>
+
+ <% if current_user and UserMute.exists?(owner: current_user, subject: @user) %>
+ <li>
+ <%= link_to t(".destroy_mute"), user_mute_path(@user), :method => :delete %>
+ </li>
+ <% elsif current_user %>
+ <li>
+ <%= link_to t(".create_mute"), user_mute_path(@user), :method => :post, :title => t("user_mutes.index.user_mute_explainer") %>
+ </li>
+ <% end %>
+ </ul>
+ </nav>