Changing display of page title depending on edit/create state

This commit is contained in:
Eston Bond
2010-11-08 14:48:04 -08:00
parent 46104dcb83
commit 34b75c2a60
7 changed files with 41 additions and 6 deletions
+15 -2
View File
@@ -5,9 +5,22 @@ module Precious
attr_reader :page, :content
def title
"Editing #{@page.title}"
def page_name
@name.gsub('-', ' ')
end
def edit_title
false
end
def hidden_title
true
end
def title
"#{@page.title}"
end
end
end
end