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

9 lines
228 B
Text

- content = wikified_body @page.body, @page.title
- toc = generate_toc @page.body
- unless toc.blank? || params[:preview]
- content_for :sidebar do
#wikitoc.well.well-small
%h3= t '.title_toc'
= toc
= content