34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
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" id="tags-<%= page.id -%>">
|
|
Tagged: <%= page.tags.collect { |t| "<a href='#{url(:tag, :id => t.name)}' title='#{t.name}'>#{t.name}</a>" }.join(' ') -%>
|
|
</div>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
addLoadEvent(function(){
|
|
new curvyCorners({
|
|
tl: { radius: 5 },
|
|
tr: { radius: 5 },
|
|
bl: { radius: 5 },
|
|
br: { radius: 5 },
|
|
antiAlias: true,
|
|
autoPad: true
|
|
}, $('tags-<%= page.id -%>')).applyCornersToAll();
|
|
});
|
|
//]]>
|
|
</script>
|
|
<% end -%>
|
|
</div> |