Added PRO star to profiles

This commit is contained in:
2017-10-07 10:01:55 +02:00
parent c9f51037dc
commit 13c45d3d2b
3 changed files with 25 additions and 8 deletions

View File

@ -44,6 +44,12 @@ component ProfileHeader(viewUser *arn.User, user *arn.User, uri string)
Icon("rocket")
span= arn.Capitalize(viewUser.Role)
if viewUser.IsPro()
p.profile-field.profile-pro-status
a.ajax(href="/shop", title="PRO user")
Icon("star")
span.profile-pro-status-text PRO
if user != nil
.profile-actions
if user.ID != viewUser.ID