Add universal_toc wiki option

This commit is contained in:
kristi
2012-05-09 16:13:53 -07:00
parent 065d06a98f
commit 61987c85d2
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ module Precious
@name = "Preview"
@page = wiki.preview_page(@name, params[:content], params[:format])
@content = @page.formatted_data
@toc_content = @page.toc_data
@toc_content = wiki.universal_toc ? @page.toc_data : nil
@editable = false
mustache :page
end
@@ -199,7 +199,7 @@ module Precious
@name = name
@editable = true
@content = page.formatted_data
@toc_content = page.toc_data
@toc_content = wiki.universal_toc ? @page.toc_data : nil
mustache :page
elsif file = wiki.file(name)