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,10 +44,10 @@ class CommentParagraphPlugin < Noosfero::Plugin | ||
| 44 | 'manual' | 44 | 'manual' |
| 45 | end | 45 | end |
| 46 | 46 | ||
| 47 | - def article_header_extra_contents(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 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 | end | 51 | end |
| 52 | end | 52 | end |
| 53 | 53 |
plugins/comment_paragraph/public/style.css
| 1 | #content #article-toolbar .icon-toggle_comment_paragraph { | 1 | #content #article-toolbar .icon-toggle_comment_paragraph { |
| 2 | - position: relative; | ||
| 3 | top: -71px; | 2 | top: -71px; |
| 4 | border: 0; | 3 | border: 0; |
| 5 | background-color: transparent; | 4 | background-color: transparent; |
| 6 | - padding-left: 0; | ||
| 7 | color: gray; | 5 | color: gray; |
| 8 | } | 6 | } |
| 9 | #content #article-toolbar .icon-toggle_comment_paragraph:hover { | 7 | #content #article-toolbar .icon-toggle_comment_paragraph:hover { |
| 10 | color: black; | 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 | #comment-bubble.visible { | 15 | #comment-bubble.visible { |
| 14 | visibility: visible; | 16 | visibility: visible; |
| 15 | } | 17 | } |