% if User.current.allowed_to?(:edit_wiki_pages, @project) &&
(@wiki && @wiki.find_or_new_page('Sidebar').editable_by?(User.current)) %>
<%= link_to sprite_icon('edit', l(:button_edit)), edit_project_wiki_page_path(@project, 'sidebar'),
:class => 'icon icon-edit' %>
<% end -%>
<% if @wiki && @wiki.sidebar -%>
<%= textilizable @wiki.sidebar.content, :text %>
<% end -%>
<%= l(:label_wiki) %>
- <%= link_to(l(:field_start_page), {:action => 'show', :id => nil}) %>
- <%= link_to(l(:label_index_by_title), {:action => 'index'}) %>
- <%= link_to(l(:label_index_by_date),
{:controller => 'wiki', :project_id => @project,
:action => 'date_index'}) %>
<%= call_hook(:view_wiki_show_sidebar_bottom, :wiki => @wiki, :page => @page) %>