2009-08-12 18:41:25 +02:00
|
|
|
- title @page.title, false
|
2009-03-25 19:54:04 +01:00
|
|
|
|
2009-08-16 01:09:11 +02:00
|
|
|
.wiki_show
|
|
|
|
|
|
|
|
#breadcrump
|
2009-08-19 22:59:53 +02:00
|
|
|
= link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki")
|
2009-08-12 18:41:25 +02:00
|
|
|
- for page in @page.ancestors.reverse
|
2009-08-16 01:09:11 +02:00
|
|
|
%span.wikiSeparator >
|
2009-08-12 18:41:25 +02:00
|
|
|
= link_to_wikipage(page)
|
2009-08-16 01:09:11 +02:00
|
|
|
%span.wikiSeparator >
|
|
|
|
= @page.title
|
|
|
|
|
|
|
|
%h1
|
|
|
|
= @page.title
|
2009-08-12 18:41:25 +02:00
|
|
|
|
2009-08-16 01:09:11 +02:00
|
|
|
#sidebar
|
2009-09-28 15:31:20 +02:00
|
|
|
#sidebar-links
|
2009-08-16 01:09:11 +02:00
|
|
|
= link_to "Bearbeiten", edit_page_path(@page)
|
|
|
|
= link_to_function "Versionen (#{@page.versions.count})", "Element.toggle('versions')"
|
2009-08-22 18:14:56 +02:00
|
|
|
- unless @page.children.empty?
|
|
|
|
= link_to_function "Unterseiten", "Element.toggle('subpages')"
|
|
|
|
#versions{:style => "display:none"}
|
|
|
|
.box_title
|
|
|
|
%h2 Versionen
|
|
|
|
.column_content
|
2009-08-16 01:09:11 +02:00
|
|
|
%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})"
|
2009-08-12 18:41:25 +02:00
|
|
|
|
2009-08-16 01:09:11 +02:00
|
|
|
- unless @page.children.empty?
|
2009-09-28 14:57:11 +02:00
|
|
|
#subpages{:style => "display:none"}
|
2009-08-22 18:14:56 +02:00
|
|
|
.box_title
|
|
|
|
%h2 Unterseiten
|
|
|
|
.column_content
|
|
|
|
%ul
|
|
|
|
- for page in @page.children
|
|
|
|
%li= link_to_wikipage(page)
|
2009-05-15 17:32:45 +02:00
|
|
|
|
2009-08-16 01:09:11 +02:00
|
|
|
= render :partial => 'body'
|
2009-03-25 19:54:04 +01:00
|
|
|
|
2009-08-16 01:09:11 +02:00
|
|
|
%hr.clear/
|
|
|
|
%p
|
|
|
|
= link_to "Seite bearbeiten", edit_page_path(@page)
|
|
|
|
|
|
|
|
|
= link_to "Seite löschen", @page, :method => :delete, :confirm => "Achtung, auch alle Unterseiten werden gelöscht. Bist Du sicher?"
|
2009-08-25 23:30:49 +02:00
|
|
|
| Zuletzt bearbeitet von
|
|
|
|
%b
|
|
|
|
= "#{@page.user.nick}"
|
|
|
|
= "am #{format_datetime @page.updated_at}"
|