2013-03-18 20:47:03 +00:00
< rewardsColumn: >
< div class = "module" >
< div class = "task-column rewards" >
<!-- cash or tokens -->
2013-03-21 19:51:38 +00:00
< span class = 'option-box pull-right wallet' >
< div class = "money" >
{gold(_user.stats.gp)}
< span class = 'shop_gold' rel = 'tooltip' title = 'Gold' > < / span >
< / div >
< div class = "money" >
{silver(_user.stats.gp)}
< span class = 'shop_silver' rel = 'tooltip' title = 'Silver' > < / span >
< / div >
< / span >
2013-03-18 20:47:03 +00:00
< h2 class = "task-column_title" > Rewards< / h2 >
2013-03-27 00:54:31 +00:00
<!-- add new reward -->
< app:tasks:newTask type = "reward" inputValue = "{_newReward}" placeHolder = "New Reward" / >
2013-03-18 20:47:03 +00:00
2013-03-27 00:54:31 +00:00
<!-- Custom Rewards -->
{#if _rewardList}
< ul class = 'rewards' >
{#each _rewardList as :task}< app:tasks:task / > {/}
2013-03-18 20:47:03 +00:00
< / ul >
2013-03-27 00:54:31 +00:00
{/}
2013-03-09 06:34:15 +00:00
2013-03-27 00:54:31 +00:00
<!-- Static Rewards -->
{#if _user.flags.itemsEnabled}
< ul class = 'items' >
{#with _view.items.weapon as :item}< app:rewards:item / > {/}
{#with _view.items.armor as :item}< app:rewards:item / > {/}
{#with _view.items.head as :item}< app:rewards:item / > {/}
{#with _view.items.shield as :item}< app:rewards:item / > {/}
{#with _view.items.potion as :item}< app:rewards:item / > {/}
{#with _view.items.reroll as :item}< app:rewards:item reroll = true / > {/}
< / ul >
2013-03-18 20:47:03 +00:00
{/}
< / div >
< / div >
2013-02-17 05:25:42 +00:00
< userTokens: >
2013-03-28 15:43:13 +00:00
< a class = "pull-right token-wallet" rel = 'popover' data-trigger = 'hover' data-title = 'Tokens' data-content = "Used for buying special items (reroll, eggs, hatching potions, etc). You'll need to unlock those features before being able to use tokens." data-placement = 'bottom' >
< span class = "task-action-btn tile flush bright add-token-btn" x-bind = "click:showStripe" > + < / span >
2013-03-09 06:34:15 +00:00
< span class = "task-action-btn tile flush neutral" > {tokens(_user.balance)} Tokens< / span >
< / a >
2013-02-17 05:25:42 +00:00
< item: >
2013-03-18 20:47:03 +00:00
< li class = "task reward-item {#if :item.hide}hide{/}" >
2013-03-09 06:34:15 +00:00
<!-- right - hand side control buttons -->
< div class = "task-meta-controls" >
< span rel = "popover" data-trigger = "hover" data-placement = "left" data-content = "{:item.notes}" data-original-title = "{:item.text}" class = 'task-notes' > < i class = "icon-comment" > < / i > < / span >
< / div >
2013-02-17 05:25:42 +00:00
2013-03-09 06:34:15 +00:00
<!-- left - hand size commands -->
< div class = "task-controls" >
{#if @reroll}
< a class = "task-action-btn btn-reroll" data-toggle = "modal" data-target = "#reroll-modal" > ⟲< / a >
{else}
< a class = "money btn-buy item-btn" x-bind = click:buyItem data-type = {:item.type} data-value = {:item.value} data-index = {:item.index} >
< span class = "reward-cost" > {:item.value}< / span >
< span class = 'shop_gold' > < / span >
< / a >
{/}
< / div >
<!-- main content -->
< span class = "shop_{:item.classes} shop-sprite item-img" > < / span >
< p class = "task-text" > {:item.text}< / p >
< / li >