2009-08-12 18:41:25 +02:00
|
|
|
- title @page.title, false
|
2009-03-25 19:54:04 +01:00
|
|
|
|
2009-08-12 18:41:25 +02:00
|
|
|
%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
|
2009-08-12 18:41:25 +02:00
|
|
|
%h2 Unterseiten
|
|
|
|
%ul
|
|
|
|
- for page in @page.children
|
|
|
|
%li= link_to_wikipage(page)
|
2009-05-15 17:32:45 +02:00
|
|
|
|
2009-05-20 12:42:01 +02:00
|
|
|
= render :partial => 'body'
|
2009-03-25 19:54:04 +01:00
|
|
|
|
2009-05-15 17:32:45 +02:00
|
|
|
%hr.clear/
|
2009-03-25 19:54:04 +01:00
|
|
|
%p
|
2009-05-15 17:32:45 +02:00
|
|
|
= link_to "Seite bearbeiten", edit_page_path(@page)
|
|
|
|
|
|
2009-08-12 19:06:15 +02:00
|
|
|
= link_to "Seite löschen", @page, :method => :delete, :confirm => "Achtung, auch alle Unterseiten werden gelöscht. Bist Du sicher?"
|
2009-05-15 17:32:45 +02:00
|
|
|
|
|
2009-05-20 15:26:53 +02:00
|
|
|
= "Zuletzt bearbeitet am #{format_datetime @page.updated_at} (#{@page.user.nick})"
|