<% content_for(:secondary_links) do %>
  • <%= link_to "Listing", wiki_pages_path %>
  • <%= link_to "New", new_wiki_page_path %>
  • <%= link_to "Help", wiki_pages_path(:search => {:title_equals => "help:wiki"}) %>
  • <% if @wiki_page %>
  • |
  • <%= link_to "Posts (#{Post.fast_count(@wiki_page.title)})", posts_path(:tags => @wiki_page.title) %>
  • <%= link_to "History", wiki_page_versions_path(:search => {:wiki_page_id_eq => @wiki_page.id}) %>
  • <% unless @wiki_page.new_record? %>
  • <%= link_to "Edit", edit_wiki_page_path(@wiki_page) %>
  • <% if CurrentUser.is_moderator? %>
  • <%= link_to "Delete", wiki_page_path(@wiki_page), :remote => true, :method => :delete, :confirm => "Do you want to delete this wiki page?" %>
  • <% end %> <% end %> <% end %> <% if @wiki_page_version %>
  • |
  • <%= link_to "Current", wiki_page_path(@wiki_page_version.wiki_page_id) %>
  • <% end %>
    <% end %>