Show human name as title.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<div class="actions">
|
||||
<a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a>
|
||||
</div>
|
||||
<h1>{{human_name}}</h1>
|
||||
<div class="wikistyle">
|
||||
{{{content}}}
|
||||
</div>
|
||||
|
||||
@@ -3,6 +3,10 @@ module Precious
|
||||
class Page < Layout
|
||||
attr_reader :content
|
||||
|
||||
def human_name
|
||||
@name.gsub(/-/, ' ')
|
||||
end
|
||||
|
||||
def title
|
||||
"A Page"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user