Add popover to no owner label

This commit is contained in:
Blade Barringer 2015-10-27 20:18:39 -05:00
parent 47ec2e1f93
commit c812c0ae90
2 changed files with 8 additions and 5 deletions

View file

@ -60,5 +60,6 @@
"noPermissionEditChallenge": "You don't have permissions to edit this challenge",
"noPermissionDeleteChallenge": "You don't have permissions to delete this challenge",
"noPermissionCloseChallenge": "You don't have permissions to close this challenge",
"noChallengeOwner": "no owner"
"noChallengeOwner": "no owner",
"noChallengeOwnerPopover": "This challenge does not have an owner because the user who created the challenge deleted their account."
}

View file

@ -186,11 +186,13 @@ script(type='text/ng-template', id='partials/options.social.challenges.html')
| {{challenge.group.name}}
a(ui-sref="options.social.party" ng-if="challenge.group.type=='party'")
| {{challenge.group.name}}
li
li(ng-if='challenge.leader.profile.name')
=env.t('by') + ' '
a(ng-click='clickMember(challenge.leader._id, true)') {{challenge.leader.profile.name || env.t('noChallengeOwner')}}
li
=env.t('participants', {membercount: "{{challenge.memberCount}}"})
a(ng-click='clickMember(challenge.leader._id, true)') {{::challenge.leader.profile.name}}
li(ng-if='!challenge.leader.profile.name',
popover=env.t('noChallengeOwnerPopover'),
popover-trigger='mouseenter')=env.t('noChallengeOwner')
li=env.t('participants', {membercount: "{{challenge.memberCount}}"})
li(ng-show='challenge.prize')
p!=env.t('prizeValue', {gemcount: "{{challenge.prize}}", gemicon: "<span class='inline-block Pet_Currency_Gem1x'></span>"})
li.bg-transparent