<% content_for(:secondary_links) do %>
  <menu>
    <li><%= render "tags/quick_search" %></li>
    <li><%= link_to "Listing", tags_path %></li>
    <li><%= link_to "Aliases", tag_aliases_path %></li>
    <li><%= link_to "Implications", tag_implications_path %></li>
    <li><%= link_to "Cheatsheet", wiki_pages_path(:search => {:title => "help:cheatsheet"}) %></li>
    <li><%= link_to "Help", wiki_pages_path(:search => {:title => "help:tags"}) %></li>
    <% if @tag %>
      <li>|</li>
      <li><%= link_to "Posts (#{Post.fast_count(@tag.name)})", posts_path(:tags => @tag.name) %></li>
      <li><%= link_to "Edit", edit_tag_path(@tag) %></li>
      <% if @tag.post_count < 1_000 %>
        <li><%= link_to "Fix", new_tag_correction_path(:tag_id => @tag.id) %></li>
      <% end %>
    <% end %>
  </menu>
<% end %>
