From 23d0890bdc6c7ae456a196af402adab2e20856ac Mon Sep 17 00:00:00 2001 From: Lukas Matt Date: Tue, 22 Apr 2014 11:25:34 -0400 Subject: [PATCH] Fixed and cleaned comment template/stylesheet fixed: * comment-report-icon will not be displayed when post author is current user * if you hover a comment all report icons will be displayed --- app/assets/stylesheets/stream_element.css.scss | 6 +++--- app/assets/templates/comment_tpl.jst.hbs | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/stream_element.css.scss b/app/assets/stylesheets/stream_element.css.scss index ac7f35c66..b7cfe0708 100644 --- a/app/assets/stylesheets/stream_element.css.scss +++ b/app/assets/stylesheets/stream_element.css.scss @@ -133,17 +133,17 @@ padding-top: 10px; .controls { - .comment_delete { + .comment_delete, .comment_report { @include transition(opacity); @include opacity(0); } } &:hover { .controls { - .comment_delete { + .comment_delete, .comment_report { @include opacity(0.3); } - .comment_delete:hover { + .comment_delete:hover, .comment_report:hover { @include opacity(1); } } diff --git a/app/assets/templates/comment_tpl.jst.hbs b/app/assets/templates/comment_tpl.jst.hbs index de65d6d64..98dd06045 100644 --- a/app/assets/templates/comment_tpl.jst.hbs +++ b/app/assets/templates/comment_tpl.jst.hbs @@ -7,14 +7,15 @@
+ {{#unless authorIsCurrentUser}} + +
+ + {{/unless}} {{#if canRemove}}