Ensure that WikiCloth does not show Edit links
This commit is contained in:
parent
da1ebe915c
commit
db46f189be
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ module PagesHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def wikified_body(body, title = nil)
|
def wikified_body(body, title = nil)
|
||||||
FoodsoftWiki::WikiParser.new(data: body+"\n", params: {referer: title}).to_html.html_safe
|
FoodsoftWiki::WikiParser.new(data: body+"\n", params: {referer: title}).to_html(noedit: true).html_safe
|
||||||
rescue => e
|
rescue => e
|
||||||
# try the following with line breaks: === one === == two == = three =
|
# try the following with line breaks: === one === == two == = three =
|
||||||
content_tag :span, class: 'alert alert-error' do
|
content_tag :span, class: 'alert alert-error' do
|
||||||
|
|
Loading…
Reference in a new issue