<% simple ||= false -%>

<%= @page.title %>

<% if @page.owner_type.nil? -%>Posted by <%= @page.created_by.title rescue 'That other guy' -%><% end -%> Created: <%= @page.created_at -%>

<%= 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 -%>)
<% end -%> <% end -%>