ItemDetailsView showing item descriptions now.

This commit is contained in:
Nick Winter 2014-11-25 10:28:31 -08:00
parent 5c77eea304
commit bbc9b615ea
5 changed files with 9 additions and 3 deletions

View file

@ -65,9 +65,12 @@
position: absolute
left: 150px
color: rgb(42,38,28)
.item-description
margin: 15px 15px 0 25px
#skills
margin: 25px
margin: 15px 15px 0 25px
h3
color: rgb(41,35,25)

View file

@ -18,6 +18,9 @@
div.stat= stat.display
img.hr(src="/images/pages/play/modal/hr.png", class=stat.isLast ? "" : "faded", draggable="false")
if item.description
.item-description= item.description
if props.length
#skills
h3.big-font(data-i18n="play.skills_granted")

View file

@ -62,7 +62,6 @@
span.gem.gem-20
else if visibleHero.locked
//#locked-hero-explanation= lockedExplanation
#locked-hero-explanation
h2
span= visibleHero.name
@ -74,7 +73,6 @@
.form
.form-group.select-group
span.help-block(data-i18n="choose_hero.programming_language_description") Which programming language do you want to use?
//label.control-label(for="option-code-language", data-i18n="choose_hero.programming_language") Programming Language
select#option-code-language(name="code-language")
for option in codeLanguages
option(value=option.id, selected=codeLanguage === option.id)= option.name

View file

@ -19,6 +19,7 @@ module.exports = class ItemDetailsView extends CocoView
if @item
@spellDocs = {}
@item.name = utils.i18n @item.attributes, 'name'
@item.description = utils.i18n @item.attributes, 'description'
@item.affordable = me.gems() >= @item.get('gems')
@item.owned = me.ownsItem @item.get('original')
@item.comingSoon = not @item.getFrontFacingStats().props.length and not _.size @item.getFrontFacingStats().stats # Temp: while there are placeholder items

View file

@ -67,6 +67,7 @@ module.exports = class PlayItemsModal extends ModalView
'rasterIcon'
'gems'
'tier'
'description'
'i18n'
'heroClass'
]