<%= @page.title %>
<% unless simple -%>
Posted by <%= @page.created_by.title rescue 'That other guy' -%>
<% end -%>
<%= replace_wiki_words(@page.html) %>
<% unless simple -%>
<% end -%>
<% content_for 'sidebar' do -%>
<% if @page.allow_discussions? or !@page.discussions.empty? -%>
<%= link_to "Discuss", discussion_path(@page) -%> (<%= @page.discussions.size -%>)