Hide contributor level if contribText func is not available; put math on scope

This commit is contained in:
Blade Barringer 2015-05-15 23:08:26 -05:00
parent d6385a94e9
commit 3c35b52d27
2 changed files with 4 additions and 1 deletions

View file

@ -18,6 +18,8 @@ window.habitrpg = angular.module('habitrpg', ['chieffancypants.loadingBar', 'ui.
});
})
}
$scope.Math = window.Math;
}])
.controller("PlansCtrl", ['$rootScope',

View file

@ -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