move wiki functionality to plugin
This commit is contained in:
parent
d4dccbc646
commit
70c12b7c1f
19 changed files with 4 additions and 16 deletions
9
lib/foodsoft_wiki/app/views/pages/_body.html.haml
Normal file
9
lib/foodsoft_wiki/app/views/pages/_body.html.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue