diff --git a/app/assets/stylesheets/debates.scss b/app/assets/stylesheets/debates.scss index 641e7ccff..5017837bc 100644 --- a/app/assets/stylesheets/debates.scss +++ b/app/assets/stylesheets/debates.scss @@ -574,6 +574,8 @@ padding: rem-calc(6) rem-calc(12); } + + &.is-admin { background: $comment-admin; padding: rem-calc(6) rem-calc(12); @@ -585,6 +587,12 @@ } } + .is-deleted { + background: $deleted; + margin-left: rem-calc(42); + padding: rem-calc(6) rem-calc(12); + } + .comment-children { border-left: 1px dashed $border; margin-left: rem-calc(42); diff --git a/app/assets/stylesheets/participacion.scss b/app/assets/stylesheets/participacion.scss index b195899d3..45a8e0bbe 100644 --- a/app/assets/stylesheets/participacion.scss +++ b/app/assets/stylesheets/participacion.scss @@ -822,6 +822,10 @@ img.initialjs-avatar { background: $association; } +.is-deleted { + background: $deleted; +} + .level-1 { background: $level-1; } diff --git a/app/assets/stylesheets/variables.scss b/app/assets/stylesheets/variables.scss index 6240702d2..1954de5bd 100644 --- a/app/assets/stylesheets/variables.scss +++ b/app/assets/stylesheets/variables.scss @@ -76,6 +76,7 @@ $level-5: #F08A24; $author: #008CCF; $association: #C0392B; +$deleted: #E7E7E7; $comment-author: rgba(45,144,248,.15); $comment-level-5: rgba(255,241,204,1); diff --git a/app/models/comment.rb b/app/models/comment.rb index fa5f72164..c23c5c993 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -61,10 +61,6 @@ class Comment < ActiveRecord::Base cached_votes_down end - def not_visible? - hidden? || user.hidden? - end - def ignored_flag? ignored_flag_at.present? end diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 5ffff4a85..e21b148bc 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -1,16 +1,18 @@
<%= t("debates.comment.deleted") %>
+