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

9 lines
277 B
Text
Raw Normal View History

2009-08-12 19:00:45 +02:00
- 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
#wiki_content= content