feat(attributes): Add backfill button in flat and classbased allocation modes

Partial implementation of a "distribute points now" button for backfilling accrued Attribute points. Works with flat and classbased allocation so far; taskbased will require much fancier handling.
This commit is contained in:
Sabe Jones 2014-01-28 08:57:29 -06:00
parent f7f4a0c166
commit 76a7ab5bcc

View file

@ -155,6 +155,11 @@ script(id='partials/options.profile.stats.html', type='text/ng-template')
=env.t('taskallocation')
 
i.icon-question-sign(popover-trigger='mouseenter', popover-placement='right', popover=env.t('taskallocationpopover'))
div(ng-show='user.preferences.automaticAllocation && !(user.preferences.allocationMode === "taskbased") && (user.stats.points > 0)')
a.btn.btn-primary.btn-mini(ng-click='user.ops.allocateNow(user.stats)', popover-trigger='mouseenter', popover-placement='right', popover=env.t('distributepointspopover'))
i.icon-download.icon-white
 
=env.t('distributepoints')
tr
td= env.t('allocatestr') + ' {{user.stats.str}}'
td