do not show author unless it is a page

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@146 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-07 04:24:27 +00:00
parent aa8402278a
commit 88c34df73c
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@
<h2 class="entry-title">
<%= @page.title %>
</h2>
<% unless simple -%><div class="vcard">
Posted by <span class="fn"><%= @page.created_by.title rescue 'That other guy' -%></span>
</div><% end -%>
<div class="vcard">
<% if @page.owner_type.nil? -%>Posted by <span class="fn"><%= @page.created_by.title rescue 'That other guy' -%></span><% end -%> Created: <%= @page.created_at -%>
</div>
<br class="clear" />
<div class="entry-content">
<%= replace_wiki_words(@page.html) %>