From db46f189beb9fbee8b9955fdf3ff48f452e57070 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 20 Oct 2017 12:07:56 +0200 Subject: [PATCH] Ensure that WikiCloth does not show Edit links --- plugins/wiki/app/helpers/pages_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wiki/app/helpers/pages_helper.rb b/plugins/wiki/app/helpers/pages_helper.rb index 8b642ed9..ca43f6c3 100644 --- a/plugins/wiki/app/helpers/pages_helper.rb +++ b/plugins/wiki/app/helpers/pages_helper.rb @@ -6,7 +6,7 @@ module PagesHelper end 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 # try the following with line breaks: === one === == two == = three = content_tag :span, class: 'alert alert-error' do