2009-08-12 18:41:25 +02:00
|
|
|
- title @page.title, false
|
2009-03-25 19:54:04 +01:00
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
- content_for :sidebar do
|
|
|
|
%p
|
|
|
|
= link_to edit_page_path(@page), class: 'btn btn-primary' do
|
|
|
|
%i.icon-edit
|
|
|
|
Seite bearbeiten
|
|
|
|
.well.well-small
|
|
|
|
%ul.nav.nav-list
|
|
|
|
%li
|
|
|
|
%li= link_to "Versionen (#{@page.versions.count})", "#versions", 'data-toggle-this' => '#versions'
|
|
|
|
- unless @page.children.empty?
|
|
|
|
%li= link_to "Unterseiten", "#subpages", 'data-toggle-this' => '#subpages'
|
2009-08-16 01:09:11 +02:00
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
#versions.well.well-small{:style => "display:none"}
|
|
|
|
%h3 Versionen
|
|
|
|
%ul.unstyled
|
|
|
|
- @page.versions.reverse.each do |version|
|
|
|
|
%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)})"
|
2009-08-16 01:09:11 +02:00
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
- unless @page.children.empty?
|
|
|
|
#subpages.well.well-small{:style => "display:none"}
|
|
|
|
%h3 Unterseiten
|
|
|
|
%ul.unstyled
|
|
|
|
- @page.children.each do |page|
|
|
|
|
%li= link_to_wikipage(page)
|
2009-08-12 18:41:25 +02:00
|
|
|
|
2012-10-18 23:43:31 +02:00
|
|
|
%ul.breadcrumb
|
|
|
|
%li
|
|
|
|
= link_to_wikipage_by_permalink("Home", "Foodcoop-Wiki")
|
|
|
|
%span.divider /
|
2012-10-09 02:31:10 +02:00
|
|
|
- for page in @page.ancestors.reverse
|
2012-10-18 23:43:31 +02:00
|
|
|
%li
|
|
|
|
= link_to_wikipage(page)
|
|
|
|
%span.divider /
|
|
|
|
%li.active= @page.title
|
2009-05-15 17:32:45 +02:00
|
|
|
|
2009-03-25 19:54:04 +01:00
|
|
|
|
2012-10-09 02:31:10 +02:00
|
|
|
#wikiContent
|
|
|
|
.page-header
|
|
|
|
%h1= @page.title
|
|
|
|
= render :partial => 'body'
|
|
|
|
|
|
|
|
%hr.clear/
|
|
|
|
%p
|
|
|
|
= link_to edit_page_path(@page), class: 'btn btn-primary' do
|
|
|
|
%i.icon-edit
|
|
|
|
Seite bearbeiten
|
|
|
|
= link_to "Seite löschen", @page, class: 'btn btn-danger', :method => :delete,
|
|
|
|
:confirm => "Achtung, auch alle Unterseiten werden gelöscht. Bist Du sicher?"
|
|
|
|
| Zuletzt bearbeitet von
|
|
|
|
%b
|
|
|
|
= "#{@page.user.try(:nick)}"
|
|
|
|
= "am #{format_datetime @page.updated_at}"
|