ip/fp info on comments

This commit is contained in:
Luna D 2019-12-05 14:48:06 -05:00
parent cb4c956079
commit 01de0bdca7
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B

View file

@ -2,14 +2,10 @@ article.block.communication id="comment_#{@comment.id}"
.block__content.flex.flex--no-wrap .block__content.flex.flex--no-wrap
.flex__fixed.spacing-right .flex__fixed.spacing-right
= render PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @comment, conn: @conn = render PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @comment, conn: @conn
.flex__grow.communication__body .flex__grow.communication__body
span.communication__body__sender-name = render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @comment, awards: true, conn: @conn span.communication__body__sender-name = render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @comment, awards: true, conn: @conn
br br
= render PhilomenaWeb.UserAttributionView, "_anon_user_title.html", object: @comment, conn: @conn = render PhilomenaWeb.UserAttributionView, "_anon_user_title.html", object: @comment, conn: @conn
.communication__body__text .communication__body__text
= if @comment.hidden_from_users do = if @comment.hidden_from_users do
strong.comment_deleted strong.comment_deleted
@ -17,10 +13,21 @@ article.block.communication id="comment_#{@comment.id}"
=> @comment.deletion_reason => @comment.deletion_reason
- else - else
==<> @body ==<> @body
.block__content.communication__options .block__content.communication__options
.flex.flex--wrap.flex--spaced-out .flex.flex--wrap.flex--spaced-out
= render PhilomenaWeb.CommentView, "_comment_options.html", comment: @comment, conn: @conn = render PhilomenaWeb.CommentView, "_comment_options.html", comment: @comment, conn: @conn
= if can?(@conn, :hide, @comment) do
.js-staff-action
/ todo: make delete button work
a.communication__interaction.togglable-delete-form-link href="#"
i.fa.fa-times
=<> "Delete"
= if can?(@conn, :manage, @comment) do
/ todo: link_to_ip
.communication__info
=<> @comment.ip
.communication__info
=<> @comment.fingerprint
/- if can?(:hide, Comment) /- if can?(:hide, Comment)
/ .js-staff-action / .js-staff-action
/ - if !comment.hidden_from_users && !comment.destroyed_content / - if !comment.hidden_from_users && !comment.destroyed_content