foodsoft/plugins/wiki/app/views/pages/_body.html.haml
2014-11-22 00:43:24 +01:00

9 lines
228 B
Text

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