codecombat/app/templates/play/modal/play-items-modal.jade
2014-11-04 08:39:36 -08:00

54 lines
2.3 KiB
Text

.modal-dialog
.modal-content
img(src="/images/pages/play/modal/play-items-modal-background.png")#play-items-modal-bg
img(src="/images/pages/play/modal/play-items-modal-background-narrow.png")#play-items-modal-narrow-bg
h1.big-font(data-i18n="play.items")
div#gems-count-container
span#gems-count.big-font= gems
div#close-modal
span.glyphicon.glyphicon-remove
ul.nav.nav-pills.nav-stacked
for category, index in itemCategories
li(class=index ? "" : "active")
a.one-line(href="#item-category-" + category, data-toggle="tab")
img.tab-icon(src="/images/pages/play/modal/play-items-modal-tab-icon-"+category+".png")
span.big-font= itemCategoryNames[index]
.tab-content
for category, index in itemCategories
.tab-pane(id="item-category-" + category, class=index ? "" : "active")
.nano
.nano-content
for item in itemCategoryCollections[category].models
- var hidden = item.comingSoon && !me.isAdmin()
div(class="item" + (hidden ? " hide" : ""), data-item-id=item.id)
if item.silhouetted && !item.owned
span.glyphicon.glyphicon-lock.bolder
span.glyphicon.glyphicon-lock
img.item-silhouette(src=item.getPortraitURL())
else
strong.big-font= item.name
img.item-img(src=item.getPortraitURL())
img.item-shadow(src=item.getPortraitURL())
if item.owned
span.big-font.owned(data-i18n="play.owned")
else if item.silhouetted
span.big-font.locked(data-i18n="play.locked")
else
span.cost
img(src="/images/common/gem.png")
span.big-font= item.get('gems')
if item.equippable
// Temp, while we only have Warriors: prevent them from buying non-Warrior stuff
button.btn.unlock-button.big-font(data-i18n="play.unlock", disabled=!item.affordable, data-item-id=item.id)
else
span.big-font.unequippable= item.get('heroClass')
.clearfix
#item-details-view