mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Hide contributor level if contribText func is not available; put math on scope
This commit is contained in:
parent
d6385a94e9
commit
3c35b52d27
2 changed files with 4 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ window.habitrpg = angular.module('habitrpg', ['chieffancypants.loadingBar', 'ui.
|
|||
});
|
||||
})
|
||||
}
|
||||
|
||||
$scope.Math = window.Math;
|
||||
}])
|
||||
|
||||
.controller("PlansCtrl", ['$rootScope',
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ script(type='text/ng-template', id='modals/member.html')
|
|||
.modal-header
|
||||
h4
|
||||
span {{::profile.profile.name}}
|
||||
span(ng-if='profile.contributor.level') - {{::contribText(profile.contributor, profile.backer)}}
|
||||
span(ng-if='::contribText && profile.contributor.level') - {{::contribText(profile.contributor, profile.backer)}}
|
||||
.modal-body
|
||||
.container-fluid
|
||||
.row
|
||||
|
|
@ -22,6 +22,7 @@ script(type='text/ng-template', id='modals/member.html')
|
|||
|
|
||||
| {{::profile.auth.timestamps.loggedin | date:user.preferences.dateFormat}} -
|
||||
h3=env.t('stats')
|
||||
// @TODO: Figure out why this isn't showing up in front page
|
||||
.label.label-info {{:: {warrior:env.t("warrior"), wizard:env.t("mage"), rogue:env.t("rogue"), healer:env.t("healer")}[profile.stats.class] }}
|
||||
include ../profiles/stats
|
||||
.col-md-6
|
||||
|
|
|
|||
Loading…
Reference in a new issue