Files
habitica/website/views/shared/modals/quest-rewards.jade
T
Travis bf5ad2db1f Fixing Exponential Quest Reward Scrolls (#7800)
* adding quest owner specific rewards. closes #2715

* Updating model to prevent this from being a breaking change.

* Removing duplicate translatable string and readding accidentally deleted portion

* capitalizing according to pr.

* fixing according to comments on pr

* removing final mistakes

* fixing whitespace

* re-adding the onlyOwner field that got deleted when the index.js file was moved and fixed console errors.

* moving cleaning of empty obejct for quest owner updates into quest owner updates method

* Fixing so tests pass by updating variable name and removing unnecessary parameter definition.

* adding a new test and refactoring client side code to use controller method.
2016-12-28 01:38:52 -06:00

20 lines
716 B
Plaintext

script(id='partials/options.social.party.quest-rewards.html', type='text/ng-template')
hr
h5 {{::headerParticipant}}
table.table.table-striped
tr(ng-repeat='drop in _.reject(quest.drop.items, \'onlyOwner\')')
td {{::drop.text()}}
tr(ng-if='::quest.drop.exp > 0')
td {{::quest.drop.exp}} 
=env.t('experience')
tr(ng-if='::quest.drop.gp > 0')
td {{::quest.drop.gp}} 
=env.t('gold')
tr(ng-if='::quest.drop.unlock()')
td {{::quest.drop.unlock()}}
div(ng-if='getQuestOwnerRewards(quest).length > 0')
h5 {{::headerQuestOwner}}
table.table.table-striped
tr(ng-repeat='drop in getQuestOwnerRewards(quest)')
td {{::drop.text()}}