Market "Sell..." button: add spaces, remove bracket

Fix some text appearance issues:

- Use item.text instead of item.key so that users see "Tiger Cub" rather than "TigerCub".

- Remove unwanted ) from end of gold value so that users see "3 Gold" instead of "3) Gold". Bracket had been left over from the end of the old env.t(...) function call - see 4f07ab39b0

- Add spaces between words so that users see "Sell Fox for 3 Gold" instead of "SellFoxfor3Gold". There are other shorter/neater ways to insert those spaces, but making them really obvious with nbsp is probably the best way to ensure they don't get accidentally removed again.
This commit is contained in:
Alice Harris 2014-01-27 19:27:06 +10:00
parent 51bff23885
commit a0dad56a9b

View file

@ -80,21 +80,21 @@ script(type='text/ng-template', id='partials/options.inventory.drops.html')
p
button.btn.btn-primary(ng-show='selectedEgg', ng-click='sellInventory()')
=env.t('sell')
| {{selectedEgg.key}}
|  {{selectedEgg.text}} 
=env.t('for')
| {{selectedEgg.value}})
|  {{selectedEgg.value}} 
=env.t('gold')
button.btn.btn-primary(ng-show='selectedPotion', ng-click='sellInventory()')
=env.t('sell')
| {{selectedPotion.key}}
|  {{selectedPotion.text}} 
=env.t('for')
| {{selectedPotion.value}})
|  {{selectedPotion.value}} 
=env.t('gold')
button.btn.btn-primary(ng-show='selectedFood', ng-click='sellInventory()')
=env.t('sell')
| {{selectedFood.key}}
|  {{selectedFood.text}} 
=env.t('for')
| {{selectedFood.value}})
|  {{selectedFood.value}} 
=env.t('gold')
menu.inventory-list(type='list')
li.customize-menu