<% content_for(:secondary_links) do %>
  <%= quick_search_form_for(:name_matches, tags_path, "tags", autocomplete: "tag") %>
  <%= subnav_link_to "Tags", tags_path %>
  <%= subnav_link_to("Aliases", tag_aliases_path) %>
  <%= subnav_link_to("Implications", tag_implications_path) %>
  <%= subnav_link_to "Request alias/implication", new_bulk_update_request_path %>
  <%= subnav_link_to "Related tags", related_tag_path %>
  <%= subnav_link_to "Help", wiki_page_path("help:tags") %>

  <% if @tag %>
    <li>|</li>
    <%= subnav_link_to "Posts (#{@tag.post_count})", posts_path(:tags => @tag.name) %>
    <%= subnav_link_to "Edit", edit_tag_path(@tag) %>
  <% end %>
<% end %>
