Fixed wiki pages.
This commit is contained in:
parent
acdb331e36
commit
699fb9b233
19 changed files with 200 additions and 220 deletions
|
|
@ -1,10 +1,9 @@
|
|||
- content = wikified_body @page.body, @page.title
|
||||
- toc = generate_toc @page.body
|
||||
|
||||
- unless toc.blank?
|
||||
#wikitoc
|
||||
%h2
|
||||
Inhaltsverzeichnis
|
||||
%span= link_to_function "[verstecken]", "Element.toggle('wikitoc-content')"
|
||||
#wikitoc-content= toc
|
||||
- unless toc.blank? or params[:preview]
|
||||
- content_for :sidebar do
|
||||
#wikitoc.well.well-small
|
||||
%h3 Inhalt
|
||||
= toc
|
||||
= content
|
||||
Loading…
Add table
Add a link
Reference in a new issue