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

52 lines
1.6 KiB
Text
Raw Normal View History

- title @page.title, false
.wiki_show
#breadcrump
= link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki")
- for page in @page.ancestors.reverse
%span.wikiSeparator >
= link_to_wikipage(page)
%span.wikiSeparator >
= @page.title
%h1
= @page.title
#sidebar
2009-09-28 15:31:20 +02:00
#sidebar-links
= link_to "Bearbeiten", edit_page_path(@page)
2011-05-18 15:25:05 +02:00
= link_to "Versionen (#{@page.versions.count})", "#versions", 'data-toggle_this' => '#versions'
- unless @page.children.empty?
2011-05-18 15:25:05 +02:00
= link_to "Unterseiten", "#subpages", 'data-toggle_this' => '#subpages'
#versions{:style => "display:none"}
.box_title
%h2 Versionen
.column_content
%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_by_id(version.updated_by).try(:nick)})"
- unless @page.children.empty?
#subpages{:style => "display:none"}
.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
= render :partial => 'body'
%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?"
| Zuletzt bearbeitet von
%b
2010-06-18 10:33:13 +02:00
= "#{@page.user.try(:nick)}"
= "am #{format_datetime @page.updated_at}"