pages added

This commit is contained in:
Andreas Stephanides
2013-03-10 20:06:34 +01:00
parent 5bb60ec8d5
commit 24694612e8
17 changed files with 357 additions and 0 deletions

15
app/views/pages/show.haml Normal file
View File

@@ -0,0 +1,15 @@
%small
= breadcrumbs(@page)
%h4
= "Page name: #{@page.name}"
= link_to '(Edit)', edit_page_path(@page)
= link_to '(Destroy)', @page, :remote => true, :confirm => 'Are you sure?', :method => :delete
%small= "Last edited by #{@page.author} #{time_ago_in_words(@page.date)} ago."
%hr
= raw(@page.content)
%hr