change to check for both fields rather than an auto-guessed model name
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@70 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
5adeef34ba
commit
8280da87e1
|
@ -15,7 +15,7 @@
|
||||||
<li>Version: <%= @page.version -%></li>
|
<li>Version: <%= @page.version -%></li>
|
||||||
<% @page.owner.page_attributes.each do |x| -%>
|
<% @page.owner.page_attributes.each do |x| -%>
|
||||||
<li><%= x -%></li>
|
<li><%= x -%></li>
|
||||||
<% end if @page.owner and @page.owner.respond_to?("page_attributes") %>
|
<% end if !@page.owner_id.nil? and !@page.owner_type.nil? and @page.owner.respond_to?("page_attributes") %>
|
||||||
<% if @page.created_by != @page.updated_by -%><li>Last updated by: <%= @page.updated_by.title rescue 'That other other guy' -%></li><% end %>
|
<% if @page.created_by != @page.updated_by -%><li>Last updated by: <%= @page.updated_by.title rescue 'That other other guy' -%></li><% end %>
|
||||||
</ul><% end -%>
|
</ul><% end -%>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in New Issue