From 0ce797bbd9efac3799f360b3387f8af97cb874eb Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 29 Nov 2019 23:53:37 -0500 Subject: [PATCH] fix post template --- lib/philomena_web/templates/post/_post.html.slime | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/philomena_web/templates/post/_post.html.slime b/lib/philomena_web/templates/post/_post.html.slime index b213fb81..0e881d73 100644 --- a/lib/philomena_web/templates/post/_post.html.slime +++ b/lib/philomena_web/templates/post/_post.html.slime @@ -1,17 +1,22 @@ article.block.communication id="post_#{@post.id}" .block__content.flex.flex--no-wrap .flex__fixed.spacing-right - = render PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @post, awards: true, conn: @conn + = render PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @post, conn: @conn .flex__grow.communication__body - span.communication__body__sender-name = render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @post, conn: @conn + span.communication__body__sender-name = render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @post, awards: true, conn: @conn br = render PhilomenaWeb.UserAttributionView, "_anon_user_title.html", object: @post, conn: @conn .communication__body__text - = if !@post.hidden_from_users do + = if @post.hidden_from_users do + strong.comment_deleted + ' Deletion reason: + => @post.deletion_reason + - else ==<> @body + .block__content.communication__options .flex.flex--wrap.flex--spaced-out