Hide contributor level if contribText func is not available; put math on scope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user