2015-01-01 23:57:08 +00:00
|
|
|
|
mixin gemButton(isGemsModal)
|
2015-04-09 22:19:58 +00:00
|
|
|
|
a.pull-right.gem-wallet(ng-click=( isGemsModal ? '' : 'openModal("buyGems",{track:"Gems > Wallet"})'), popover-trigger='mouseenter', popover-title=env.t('gemsPopoverTitle'), popover=env.t('gemsWhatFor'), popover-placement='bottom')
|
2015-01-02 00:01:44 +00:00
|
|
|
|
if !isGemsModal
|
|
|
|
|
|
span.task-action-btn.tile.flush.bright.add-gems-btn +
|
2015-01-01 23:57:08 +00:00
|
|
|
|
span.task-action-btn.tile.flush.neutral
|
|
|
|
|
|
.Pet_Currency_Gem2x.Gems
|
2015-02-22 05:35:46 +00:00
|
|
|
|
=env.t('gemButton', {number: '{{user.balance * 4 | number:0}}'})
|
2015-01-29 19:40:06 +00:00
|
|
|
|
|
|
|
|
|
|
mixin aLink(url, label)
|
|
|
|
|
|
if mobile
|
|
|
|
|
|
a(href="", ng-click="externalLink('#{url}')")= label
|
|
|
|
|
|
else
|
2014-02-27 14:46:02 +00:00
|
|
|
|
a(href='#{url}', target='_blank')= label
|
2015-04-27 17:23:56 +00:00
|
|
|
|
|
|
|
|
|
|
mixin previewMarkdown(text)
|
|
|
|
|
|
.panel.panel-warning
|
|
|
|
|
|
.panel-heading=env.t('msgPreviewHeading')
|
2015-04-27 17:47:42 +00:00
|
|
|
|
.panel-body.markdown-preview
|
2015-08-10 18:42:36 +00:00
|
|
|
|
markdown(text='#{text}')
|
|
|
|
|
|
|
2015-08-18 02:51:08 +00:00
|
|
|
|
mixin ownedQuests(popoverAppend, popoverPlacement)
|
2015-08-10 18:42:36 +00:00
|
|
|
|
menu.inventory-list
|
|
|
|
|
|
li.customize-menu
|
|
|
|
|
|
p.muted(ng-show='questCount < 1')=env.t('noScrolls')
|
2015-08-18 02:51:08 +00:00
|
|
|
|
div(ng-repeat='type in Content.userCanOwnQuestCategories track by $index')
|
2015-08-18 03:07:09 +00:00
|
|
|
|
menu.pets-menu(ng-if='Shared.count.questsOfCategory(user.items.quests,type) > 0', label='{{::env.t(type + "Quests")}}')
|
2015-08-10 18:42:36 +00:00
|
|
|
|
div(ng-repeat='(quest_key,points) in ownedItems(user.items.quests)', ng-init='quest = Content.quests[quest_key]', ng-if='Content.quests[quest_key].category === type')
|
|
|
|
|
|
button.customize-option(ng-class='lockQuest(quest) ? "inventory_quest_scroll_locked inventory_quest_scroll_{{::quest.key}}_locked locked" : "inventory_quest_scroll inventory_quest_scroll_{{::quest.key}}"',
|
|
|
|
|
|
ng-click='$close(); showQuest(quest_key)',
|
|
|
|
|
|
data-popover-html="{{::lockQuest(quest) ? env.t('scrollsPre') : questPopover(quest) | markdown}}",
|
|
|
|
|
|
popover-title='{{::quest.text()}}',
|
|
|
|
|
|
popover-trigger='mouseenter',
|
|
|
|
|
|
popover-append-to-body='#{popoverAppend}',
|
|
|
|
|
|
popover-placement='#{popoverPlacement}')
|
|
|
|
|
|
.badge.badge-info.stack-count {{points}}
|