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>
|
2007-11-17 04:42:02 -05:00
|
|
|
<% unless simple -%><div class="vcard">
|
2007-12-27 00:19:13 -05:00
|
|
|
Posted by <span class="fn"><%= @page.created_by.title rescue 'That other guy' -%></span>
|
2007-11-17 04:42:02 -05:00
|
|
|
</div><% end -%>
|
2007-11-15 19:57:44 -05:00
|
|
|
<br class="clear" />
|
|
|
|
<div class="entry-content">
|
|
|
|
<%= @page.html %>
|
|
|
|
</div>
|
2007-11-17 04:42:02 -05:00
|
|
|
<% unless simple -%><ul class="meta">
|
2007-12-04 01:02:56 -05:00
|
|
|
<% if @page.tags.size > 0 -%><li>Tags: <%= @page.tag_names.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? -%>
|
|
|
|
<%= link_to "Discuss (#{@page.discussions.size})", discussion_path(@page) -%><br />
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|