Made title dynamic

This commit is contained in:
Blade Barringer 2015-01-10 08:26:11 -06:00
parent 0807e7856c
commit 7f20ca7d8b

View file

@ -16,7 +16,10 @@ script(type='text/ng-template', id='modals/dropsEnabled.html')
script(type='text/ng-template', id='modals/pet-key.html')
.modal-header
h4=env.t('petKeyBegin')
// Checks if user has 90 pets and 90 mounts. If so, displays "Beast Master/Mount Master".
// Else if user has 90 pets, displays "Beast Master". Else, displays "Mount Master"
- var masterTitle='{{petCount >= 90 && mountCount >= 90 ? env.t("beastMastName") + "/" + env.t("mountMastName") : petCount >= 90 ? env.t("beastMastName") : env.t("mountMastName")}}'
h4=env.t('petKeyBegin', {title: masterTitle})
.modal-body
+gemButton
figure