WIP(NYE): New Year's cards

This commit is contained in:
Sabe Jones
2014-12-29 20:58:28 -06:00
parent 53fff0dbc6
commit d8cfc1dd4b
4 changed files with 43 additions and 14 deletions
+22 -1
View File
@@ -27,4 +27,25 @@ script(id='modals/valentine.html', type='text/ng-template')
p
small For enduring such a saccharine poem, you both receive the "Adoring Friends" badge!
.modal-footer
button.btn.btn-default(ng-click='user.ops.readValentine({});$close()')=env.t('ok')
button.btn.btn-default(ng-click='user.ops.readValentine({});$close()')=env.t('ok')
// New Year's
script(id='modals/nye.html', type='text/ng-template')
.modal-header
h4
.inventory_special_nye.pull-right
=env.t('nyeCard')
.modal-body
.bg-info(style='padding:10px')
p To: {{user.profile.name}}, From: {{user.items.special.nyeReceived[0]}}
hr
div(ng-switch='Math.floor(Math.random()*5)')
p(ng-switch-when='0') Happy New Year! May you slay many a bad Habit.
p(ng-switch-when='1') Happy New Year! May you reap many Rewards.
p(ng-switch-when='2') Happy New Year! May you earn many a Perfect Day.
p(ng-switch-when='3') Happy New Year! May your To-Do list stay short and sweet.
p(ng-switch-default) Happy New Year! May you not get attacked by a raging Hippogriff.
p
small For celebrating the new year together, you both receive the "Auld Acquaintance" badge!
.modal-footer
button.btn.btn-default(ng-click='user.ops.readNYE({});$close()')=env.t('ok')
+6
View File
@@ -179,3 +179,9 @@ div(ng-if='::profile.achievements.costumeContest')
=env.t('costumeContestText')
hr
div(ng-if='::profile.achievements.nye')
.achievement.achievement-valentine
h5=env.t('auldAcquaintance')
small
=env.t('auldAcquaintanceText', {cards: "{{::profile.achievements.nye}}"})
hr