2009-03-25 19:54:04 +01:00
|
|
|
- title @page.title
|
|
|
|
|
2009-05-15 17:32:45 +02:00
|
|
|
#page-versions{:style => "float:right;margin-top:-2%;text-align:right;"}
|
|
|
|
= 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 format_datetime(version.updated_at), version_page_path(@page, :version => version.version)
|
|
|
|
= "(#{User.find(version.updated_by).nick})"
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
= link_to "Seite löschen", @page, :method => :delete, :confirm => "Achtung, möchtest Du wirklich die Wikiseite löschen?"
|
|
|
|
|
|
|
|
|
= "Zuletzt bearbeitet: #{format_datetime @page.updated_at} (#{@page.user.nick})"
|