Commit 1223902df18edd0d3e2f5e97ebb6bca7aed69c3f

Authored by Victor Costa
1 parent af6add04

Add proposals_discussion plugin content types to show_media_panel conditions

FIXME: Create hotspot
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/cms/edit.html.erb
1 1 <%= error_messages_for 'article' %>
2 2  
3   -<% show_media_panel = environment.enabled?('media_panel') && [TinyMceArticle, TextileArticle, Event, EnterpriseHomepage].any?{|klass| @article.kind_of?(klass)} %>
  3 +<% show_media_panel = environment.enabled?('media_panel') && [TinyMceArticle, TextileArticle, Event, EnterpriseHomepage, ProposalsDiscussionPlugin::Topic, ProposalsDiscussionPlugin::Discussion].any?{|klass| @article.kind_of?(klass)} %>
4 4  
5 5 <div class='<%= (show_media_panel ? 'with_media_panel' : 'no_media_panel') %>'>
6 6 <%= labelled_form_for 'article', :html => { :multipart => true, :class => @type } do |f| %>
... ...