Skip to content
Permalink
Browse files

FEATURE: Link to the user profile if possible when reviewing AkismetF…

…laggedUsers (#42)
  • Loading branch information...
romanrizzi committed Aug 13, 2019
1 parent e08334f commit 33aefd84a7e797adc2b7b438ef7091bfa660472e
@@ -3,9 +3,16 @@
<div class='reviewable-user-details username'>
<div class='name'>{{i18n "review.user.username"}}</div>
<div class='value'>
{{reviewable.payload.username}}
{{#if reviewable.user_deleted}}
{{reviewable.payload.username}}
{{else}}
<a href={{get-url (concat "/u/" reviewable.payload.username "/summary")}}>
{{reviewable.payload.username}}
</a>
{{/if}}
</div>
</div>

{{reviewable-field classes='reviewable-user-details name'
name=(i18n 'review.user.name')
value=reviewable.payload.name}}
@@ -4,4 +4,10 @@

class ReviewableAkismetUserSerializer < ReviewableSerializer
payload_attributes :username, :name, :email, :bio

attributes :user_deleted

def user_deleted
object.target.nil?
end
end

0 comments on commit 33aefd8

Please sign in to comment.
You can’t perform that action at this time.