Commit 9cca9bca54345a6627239ca4647dc3355ebee054

Authored by Victor Costa
1 parent bc8562d5
Exists in master

comment_paragraph: fix toolbar button

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/comment_paragraph_plugin.rb
@@ -47,7 +47,7 @@ class CommentParagraphPlugin < Noosfero::Plugin @@ -47,7 +47,7 @@ class CommentParagraphPlugin < Noosfero::Plugin
47 def article_toolbar_actions(article) 47 def article_toolbar_actions(article)
48 return unless article.comment_paragraph_plugin_enabled? 48 return unless article.comment_paragraph_plugin_enabled?
49 proc do 49 proc do
50 - button :toggle_comment_paragraph, article.comment_paragraph_plugin_activated? ? _('Deactivate Comments') : _('Activate Comments'), :controller => 'comment_paragraph_plugin_myprofile', :action => 'toggle_activation', :id => article.id if article.allow_edit?(user) 50 + button :toggle_comment_paragraph, article.comment_paragraph_plugin_activated? ? _('Deactivate Comments') : _('Activate Comments'), :controller => 'comment_paragraph_plugin_myprofile', :profile => article.profile.identifier, :action => 'toggle_activation', :id => article.id if article.allow_edit?(user)
51 end 51 end
52 end 52 end
53 53