From 88c34df73c6de49541c8afe80c336ad9c1c97b52 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 7 Feb 2008 04:24:27 +0000 Subject: [PATCH] do not show author unless it is a page git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@146 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/views/pages/_page.rhtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/pages/_page.rhtml b/app/views/pages/_page.rhtml index df5be4c..dc60914 100644 --- a/app/views/pages/_page.rhtml +++ b/app/views/pages/_page.rhtml @@ -3,9 +3,9 @@

<%= @page.title %>

- <% unless simple -%>
- Posted by <%= @page.created_by.title rescue 'That other guy' -%> -
<% end -%> +
+ <% if @page.owner_type.nil? -%>Posted by <%= @page.created_by.title rescue 'That other guy' -%><% end -%> Created: <%= @page.created_at -%> +

<%= replace_wiki_words(@page.html) %>