<% extend ProposalsDiscussionPlugin::DiscussionHelper %> <%= javascript_include_tag 'plugins/proposals_discussion/proposals_list.js' %>
<%= (discussion.body||'').html_safe %>
<%= discussion_phases(discussion) %>
<% if discussion.allow_create?(user) %>
<%= link_to({:controller => :proposals_discussion_plugin_profile, :action => :export, :format => :csv, :article_id => discussion.id}, :class => 'button with-text icon-spread') do %> <%= _('Export') %> <% end %>
<% end %> <%= render :partial => 'content_viewer/statistics', :locals => {:holder => discussion} %>
<%= tag_cloud(discussion.proposal_tags, :tag, {:action => :tag, :controller => 'search'}, :max_size => 18, :min_size => 10) %>
<%= link_to_new_proposal(discussion) %>
<%= render :partial => 'content_viewer/proposals_list', :locals => {:holder => discussion} %>