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

21 lines
862 B
Plaintext

<div class="entry" id="page-<%= page.id %>">
<h2 class="entry-title">
<%= show_page_link(page) %>
<span class='comment_count'><%= "#{page.comments.size} comments" unless page.comments.empty? %></span>
</h2>
<div class="entry-author">
Posted by <span class="fn"><%= page.author.name rescue 'AUTHOR' -%></span> <abbr class="published" title="<%= page.created_at %>"><%= time_lost_in_words page.created_at %> ago</abbr><% unless page.department.to_s.empty? -%> in the <span class="dept"><%= page.department -%></span> department<% end -%>.
</div>
<div class="entry-content">
<%= show_page_description(page) %>
</div>
<% unless page.tags.empty? -%>
<div class="entry-tags">
Tagged: <%= page.tags.collect { |t| "<a href='#{url(:tag, :id => t.name)}' title='#{t.name}'>#{t.name}</a>" }.join(' ') -%>
</div>
<% end -%>
</div>