- anonymized = comment.really_anonymous? || (force_anonymous? && !current_user&.staff?) article.block.communication id="comment_#{comment.id}" .block__content.flex.flex--no-wrap .flex__fixed.spacing-right =<> user_avatar((comment.user unless anonymized), 'avatar--100px', comment.author) .flex__grow.communication__body span.communication__body__sender-name =<> link_to_author(comment, can?(:manage, Comment)) - if !anonymized =<> render partial: 'profiles/user_badges', locals: { user: comment.user } br - if comment.name_at_post_time != comment.user.name p.small-text ' (Previously known as = comment.name_at_post_time ' ) - elsif comment.user.last_renamed_at > 14.days.ago p.small-text ' (Previously known as = comment.user.previous_usernames.last ' ) = user_label comment.user, small: true - elsif comment.show_staff_tag? br = user_label comment.user, small: true, show_custom: false .communication__body__text - if comment.hidden_from_users strong.comment_deleted | Deletion reason: =<> comment.deletion_reason - if can?(:read, comment) | ( = comment.deleted_by.try(:name) || 'Orbital Friendship Cannon' | ) br - if comment.destroyed_content | This comment's contents have been destroyed. br - if can?(:read, comment) =<> render_post comment .block__content.communication__options .flex.flex--wrap.flex--spaced-out include app/views/comments/_comment_options.html.slim - if can?(:hide, Comment) .js-staff-action - if !comment.hidden_from_users && !comment.destroyed_content =<> link_to '#', class: 'communication__interaction togglable-delete-form-link', 'data-click-toggle': "#inline-del-form-comment-#{comment.id}" do i.fa.fa-times =<> 'Delete' - elsif comment.hidden_from_users && !comment.destroyed_content =<> link_to post_comment_hide_path(comment.post, comment), data: { confirm: t('are_you_sure') }, method: :delete, class: 'communication__interaction' do i.fa.fa-check =<> 'Restore' - if can?(:manage, Comment) =<> link_to post_comment_path(comment.post, comment), method: :delete, data: { confirm: t('are_you_sure') }, class: 'communication__interaction' do i.fa.fa-times =<> 'Delete Contents' - if can?(:manage, Comment) .communication__info =<> link_to_ip(comment.ip) = form_tag post_comment_hide_path(comment.post, comment), class: 'togglable-delete-form hidden flex', id: "inline-del-form-comment-#{comment.id}" = text_field_tag :deletion_reason, nil, class: 'input input--wide', placeholder: 'Deletion Reason', id: "inline-del-reason-comment-#{comment.id}", required: true = submit_tag 'Delete', class: 'button'