From f8796e9028d4f4cd2b5c5ede1734d2876d174dc9 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 2 Feb 2014 23:17:30 -0700 Subject: [PATCH] feat(winter): remove purchasable winter hair colors, keep available if they purchased during event --- views/options/profile.jade | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/views/options/profile.jade b/views/options/profile.jade index 15986489a1..c238ea79ec 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -30,22 +30,15 @@ script(id='partials/options.profile.avatar.html', type='text/ng-template') | 2 / = ' ' + env.t('locked') menu(type='list') + // For special events code, see commit dfa27b3 + // Color li.customize-menu menu(label=env.t('color')) each v,k in {'c8c8c8':'white','903a00':'brown','cfb853':'blond','ec720f':'red','2e2e2e':'black'} button(type='button', class='customize-option', style='width: 40px; height: 40px; background-color:##{k};', ng-click='set({"preferences.hair.color": "#{v}"})') - - // Special Events - li.customize-menu.well.limited-edition - .label.label-info.pull-right(popover=env.t('limited31Jan'), popover-title=env.t('limitedEdition'), popover-placement='right', popover-trigger='mouseenter') - =env.t('limitedEdition') - | - i.icon.icon-question-sign - menu(label=env.t('winterColors')) each color in ['candycane','frost','winternight','holly'] - button(type='button', ng-class='{locked: !user.purchased.hair.color.#{color}}', class='customize-option hair_bangs_1_#{color}', style='width: 40px; height: 40px;', ng-click='unlock("hair.color.#{color}")') - button.btn.btn-small.btn-primary(ng-hide='user.purchased.hair.color.candycane && user.purchased.hair.color.frost && user.purchased.hair.color.winternight && user.purchased.hair.color.holly', ng-click='unlock("hair.color.candycane,hair.color.frost,hair.color.winternight,hair.color.holly")')!= env.t('unlockSet5') + ' ' + button(type='button', ng-if='user.purchased.hair.color.#{color}', class='customize-option hair_bangs_1_#{color}', style='width: 40px; height: 40px;', ng-click='unlock("hair.color.#{color}")') h5=env.t('bodyHair') // Bangs