algorightms notification (to warn people to restore their exp)

This commit is contained in:
Tyler Renelle 2013-03-03 16:14:16 -05:00
parent 4b77daff0a
commit 6189fee74e
2 changed files with 10 additions and 2 deletions

View file

@ -57,8 +57,8 @@ module.exports.app = (appExports, model) ->
batch.commit()
browser.resetDom(model)
appExports.closeCelebrationNofitication = (e, el) ->
user.set('flags.celebrationEvent', 'hide')
appExports.closeAlgosNotification = (e, el) ->
user.set('flags.algosNotification', 'hide')
appExports.customizeGender = (e, el) ->
user.set 'preferences.gender', $(el).attr('data-value')

View file

@ -3,4 +3,12 @@
<ul class="unstyled alert alert-error">
{#each _flash.error as :error}<li>{:error}</li>{/}
</ul>
{/}
{#if equal(_user.flags.algosNotification,'show')}
<div class='alert alert-success'>
<a target="_blank" x-bind="click:closeAlgosNotification" class=pull-right>[x]</a>
<p>New features! Custom day start, new and better algorithms, authentication enhancements. See <a href="http://habitrpg.tumblr.com/post/44468869138/custom-day-start-better-algorithms-auth-enhancements">details here.</a>
&nbsp;"Hey, I had more Exp before this roll-out!" <a href="#restore-modal" data-toggle=modal>Restore your Exp here.</a></p>
</div>
{/}