<%= render "sidebar" %>

<%= @wiki_page.pretty_title %>

<%= format_text(@wiki_page.body) %>
<%= @wiki_page.presenter.posts %>
<%= render :partial => "sidebar" %>

<%= @presenter.html_title %>

<%= @presenter.html_body(self) %>
<%= @presenter.html_posts(self) %>
<% content_for("footer") do %>
  • |
  • <% if @wiki_page.nil? %>
  • <%= link_to "Posts (#{Post.fast_count(params[:title])})", :controller => "post", :action => "index", :tags => params[:title] %>
  • <%= link_to "Edit", :controller => "wiki", :action => "edit", :title => params[:title] %>
  • <% else %>
  • <%= link_to "Posts (#{Post.fast_count(params[:title])})", :controller => "post", :action => "index", :tags => @title %>
  • <%= link_to "History", :controller => "wiki", :action => "history", :title => @wiki_page.title %>
  • <% if not @wiki_page.is_locked? %>
  • <%= link_to "Edit", :controller => "wiki", :action => "edit", :title => @wiki_page.title, :version => @wiki_page.version %>
  • <% end %> <% if @wiki_page.is_locked? %>
  • <%= link_to "Unlock", {:controller => "wiki", :action => "unlock", :title => @wiki_page.title}, :method => "post" %>
  • <% else %>
  • <%= link_to "Revert", {:controller => "wiki", :action => "revert", :title => @wiki_page.title, :version => @wiki_page.version}, :confirm => "Are you sure you want to revert to this page?", :method => :post %>
  • <%= link_to "Delete", {:controller => "wiki", :action => "destroy", :title => @wiki_page.title}, :confirm => "Are you sure you want to delete this page (and all versions)?", :method => :post %>
  • <%= link_to "Lock", {:controller => "wiki", :action => "lock", :title => @wiki_page.title}, :method => :post %>
  • <%= link_to "Rename", :action => "rename", :title => @wiki_page.title %>
  • <% end %> <% end %> <% end %> <%= render :partial => "footer" %>