Ensure that WikiCloth does not show Edit links

This commit is contained in:
Patrick Gansterer 2017-10-20 12:07:56 +02:00
parent da1ebe915c
commit db46f189be

View file

@ -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