2014-11-01 17:15:57 -04:00
|
|
|
|
|
|
|
#item-title
|
|
|
|
h2.one-line.big-font= item ? item.name : ''
|
|
|
|
|
|
|
|
#item-details-body
|
|
|
|
if item
|
2014-11-09 22:39:09 -05:00
|
|
|
.nano
|
|
|
|
.nano-content
|
|
|
|
#item-container
|
2014-11-19 19:36:06 -05:00
|
|
|
img.item-img(src=item.getPortraitURL(), draggable="false")
|
|
|
|
img.item-shadow(src=item.getPortraitURL(), draggable="false")
|
2014-11-01 17:15:57 -04:00
|
|
|
|
2014-11-19 19:36:06 -05:00
|
|
|
img.hr(src="/images/pages/play/modal/hr.png", draggable="false")
|
2014-11-01 17:15:57 -04:00
|
|
|
|
2014-11-09 22:39:09 -05:00
|
|
|
for stat in stats
|
|
|
|
div.stat-row.big-font
|
|
|
|
div.stat-label= stat.name
|
|
|
|
div.stat= stat.display
|
2014-11-19 19:36:06 -05:00
|
|
|
img.hr(src="/images/pages/play/modal/hr.png", class=stat.isLast ? "" : "faded", draggable="false")
|
2014-11-09 22:39:09 -05:00
|
|
|
|
|
|
|
if props.length
|
|
|
|
#skills
|
2014-11-12 19:26:30 -05:00
|
|
|
h3.big-font(data-i18n="play.skills_granted")
|
2014-11-09 22:39:09 -05:00
|
|
|
for prop in props
|
|
|
|
p
|
2014-11-23 14:08:20 -05:00
|
|
|
strong= prop.name
|
2014-11-09 22:39:09 -05:00
|
|
|
span.spr :
|
|
|
|
span!= prop.description
|
|
|
|
|
2014-11-18 22:37:08 -05:00
|
|
|
if item.comingSoon
|
|
|
|
.text-center
|
|
|
|
h3 This item has no stats.
|
|
|
|
p Only admins will see it for now.
|
2014-11-04 10:52:23 -05:00
|
|
|
|
2014-11-01 17:15:57 -04:00
|
|
|
if item && !item.owned
|
2014-11-18 22:37:08 -05:00
|
|
|
if item.unequippable
|
|
|
|
// Temp, while we only have Warriors: prevent them from buying non-Warrior stuff
|
|
|
|
button.btn.big-font.disabled.unequippable #{item.get('heroClass')} Only
|
|
|
|
else
|
2014-11-13 13:49:37 -05:00
|
|
|
button#selected-item-unlock-button.btn.big-font.unlock-button(disabled=!item.affordable, data-item-id=item.id)
|
|
|
|
span(data-i18n="play.unlock") Unlock
|
|
|
|
span.spl= '('+item.get('gems')
|
2014-11-19 19:36:06 -05:00
|
|
|
img(src="/images/common/gem.png", draggable="false")
|
2014-11-13 13:49:37 -05:00
|
|
|
span )
|