2007-11-17 04:42:02 -05:00
<% simple ||= false -%>
2007-11-15 19:57:44 -05:00
<div class="hentry" id="article-<%= @page.id %>">
<h2 class="entry-title">
<%= @page.title %>
</h2>
2008-02-06 23:24:27 -05:00
<div class="vcard">
<% if @page.owner_type.nil? -%>Posted by <span class="fn"><%= @page.created_by.title rescue 'That other guy' -%></span><% end -%> Created: <%= @page.created_at -%>
</div>
2007-11-15 19:57:44 -05:00
<br class="clear" />
<div class="entry-content">
2008-01-02 02:58:03 -05:00
<%= replace_wiki_words(@page.html) %>
2007-11-15 19:57:44 -05:00
</div>
2007-11-17 04:42:02 -05:00
<% unless simple -%><ul class="meta">
2008-01-02 02:58:03 -05:00
<% if @page.tags.size > 0 -%><li>Tags: <%= @page.tags.collect { |t| t.name }.sort.join(' ') -%></li><% end -%>
2007-11-15 22:11:50 -05:00
<li>Version: <%= @page.version -%></li>
<% @page.owner.page_attributes.each do |x| -%>
<li><%= x -%></li>
2007-12-27 02:21:11 -05:00
<% end if !@page.owner_id.nil? and !@page.owner_type.nil? and @page.owner.respond_to?("page_attributes") %>
2007-12-27 00:19:13 -05:00
<% if @page.created_by != @page.updated_by -%><li>Last updated by: <%= @page.updated_by.title rescue 'That other other guy' -%></li><% end %>
2007-11-17 04:42:02 -05:00
</ul><% end -%>
2007-11-15 22:11:50 -05:00
</div>
2007-11-28 01:17:25 -05:00
<% content_for 'sidebar' do -%>
<% if @page.allow_discussions? or !@page.discussions.empty? -%>
2008-04-13 04:16:26 -04:00
<%= link_to "Discuss", discussion_path(@page.id) -%> (<%= @page.discussions.size -%>)<br />
2007-11-28 01:17:25 -05:00
<% end -%>
<% end -%>