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

34 lines
1.2 KiB
Plaintext
Raw Normal View History

<div class="entry" id="page-<%= page.id %>">
2008-06-27 00:13:15 -04:00
<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 -%>.
2008-06-27 00:13:15 -04:00
</div>
2008-06-27 00:13:15 -04:00
<div class="entry-content">
<%= show_page_description(page) %>
</div>
<% unless page.tags.empty? -%>
2008-07-24 04:41:17 -04:00
<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>
2008-07-24 04:41:17 -04:00
<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 -%>
2008-06-27 00:13:15 -04:00
</div>