This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/pages/_page.rhtml

22 lines
770 B
Plaintext

<% simple ||= false -%>
<div class="hentry" id="article-<%= @page.id %>">
<h2 class="entry-title">
<%= @page.title %>
<% unless simple -%><span class="comment_count">Comment Size Here</span><% end -%>
</h2>
<% unless simple -%><div class="vcard">
Posted by <span class="fn">Author Name Here</span>
</div><% end -%>
<br class="clear" />
<div class="entry-content">
<%= @page.html %>
</div>
<% unless simple -%><ul class="meta">
<% if @page.tags.size > 0 -%><li>Tags: <%= @page.tag_names.join(' ') -%></li><% end -%>
<li>Version: <%= @page.version -%></li>
<% @page.owner.page_attributes.each do |x| -%>
<li><%= x -%></li>
<% end if @page.owner and @page.owner.respond_to?("page_attributes") %>
</ul><% end -%>
</div>