foodsoft/app/views/pages/show.html.haml

37 lines
1.1 KiB
Text
Raw Normal View History

- title @page.title, false
%h1
%span#breadcrump
- for page in @page.ancestors.reverse
= link_to_wikipage(page)
>>
= @page.title
#sidebar
#page-versions
= link_to "Bearbeiten", edit_page_path(@page)
= link_to_function "Versionen (#{@page.versions.count})", "Element.toggle('versions')"
#versions{:style => "display:none"}
%ul
- for version in @page.versions.reverse
%li
= link_to I18n.l(version.updated_at, :format => "%d.%m.%y %H:%M"), version_page_path(@page, :version => version.lock_version)
= "(#{User.find(version.updated_by).nick})"
- unless @page.children.empty?
2009-08-12 18:55:36 +02:00
#subpages
%h2 Unterseiten
%ul
- for page in @page.children
%li= link_to_wikipage(page)
2009-05-15 17:32:45 +02:00
= render :partial => 'body'
2009-05-15 17:32:45 +02:00
%hr.clear/
%p
2009-05-15 17:32:45 +02:00
= link_to "Seite bearbeiten", edit_page_path(@page)
|
= link_to "Seite löschen", @page, :method => :delete, :confirm => "Achtung, möchtest Du wirklich die Wikiseite löschen?"
|
= "Zuletzt bearbeitet am #{format_datetime @page.updated_at} (#{@page.user.nick})"