From 1223902df18edd0d3e2f5e97ebb6bca7aed69c3f Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 20 Apr 2015 17:50:03 -0300 Subject: [PATCH] Add proposals_discussion plugin content types to show_media_panel conditions --- app/views/cms/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/cms/edit.html.erb b/app/views/cms/edit.html.erb index 7c41265..55ebcd0 100644 --- a/app/views/cms/edit.html.erb +++ b/app/views/cms/edit.html.erb @@ -1,6 +1,6 @@ <%= error_messages_for 'article' %> -<% show_media_panel = environment.enabled?('media_panel') && [TinyMceArticle, TextileArticle, Event, EnterpriseHomepage].any?{|klass| @article.kind_of?(klass)} %> +<% show_media_panel = environment.enabled?('media_panel') && [TinyMceArticle, TextileArticle, Event, EnterpriseHomepage, ProposalsDiscussionPlugin::Topic, ProposalsDiscussionPlugin::Discussion].any?{|klass| @article.kind_of?(klass)} %>
'> <%= labelled_form_for 'article', :html => { :multipart => true, :class => @type } do |f| %> -- libgit2 0.21.2