Commit 1e0000dfcb197774917743e2aa87d7f0d44743c5
1 parent
d5f5fbd0
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
put comment paragraph in article toolbar hotspot
Showing
2 changed files
with
6 additions
and
4 deletions
Show diff stats
plugins/comment_paragraph/lib/comment_paragraph_plugin.rb
| ... | ... | @@ -44,10 +44,10 @@ class CommentParagraphPlugin < Noosfero::Plugin |
| 44 | 44 | 'manual' |
| 45 | 45 | end |
| 46 | 46 | |
| 47 | - def article_header_extra_contents(article) | |
| 47 | + def article_toolbar_actions(article) | |
| 48 | 48 | return unless article.comment_paragraph_plugin_enabled? |
| 49 | 49 | proc do |
| 50 | - button :toggle_comment_paragraph, article.comment_paragraph_plugin_activated? ? _('Deactivate Comment Paragraph') : _('Activate Comment Paragraph'), :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', :action => 'toggle_activation', :id => article.id if article.allow_edit?(user) | |
| 51 | 51 | end |
| 52 | 52 | end |
| 53 | 53 | ... | ... |
plugins/comment_paragraph/public/style.css
| 1 | 1 | #content #article-toolbar .icon-toggle_comment_paragraph { |
| 2 | - position: relative; | |
| 3 | 2 | top: -71px; |
| 4 | 3 | border: 0; |
| 5 | 4 | background-color: transparent; |
| 6 | - padding-left: 0; | |
| 7 | 5 | color: gray; |
| 8 | 6 | } |
| 9 | 7 | #content #article-toolbar .icon-toggle_comment_paragraph:hover { |
| 10 | 8 | color: black; |
| 11 | 9 | } |
| 12 | 10 | |
| 11 | +.icon-toggle_comment_paragraph{ | |
| 12 | + background-image: url('/plugins/comment_paragraph/images/internet-group-chat.png'); | |
| 13 | +} | |
| 14 | + | |
| 13 | 15 | #comment-bubble.visible { |
| 14 | 16 | visibility: visible; |
| 15 | 17 | } | ... | ... |