aws notification

This commit is contained in:
Tyler Renelle 2013-01-16 18:56:06 -05:00
parent 945dab9a71
commit 4b48336098
2 changed files with 12 additions and 1 deletions

View file

@ -69,9 +69,11 @@ get '/:uid?', (page, model, {uid}, next) ->
# also update in scoring.coffee. TODO create a function accessible in both locations
(lvl*100)/5
# ========== KickStarter Campaign Notifiation ==========
# ========== Notifiations ==========
unless model.get('_user.notifications.kickstarter')
model.set('_user.notifications.kickstarter', 'show')
unless model.get('_user.flags.aws_migrating')
model.set('_user.flags.aws_migrating', 'show')
# Render Page
page.render()
@ -295,6 +297,8 @@ ready (model) ->
exports.closeKickstarterNofitication = (e, el) ->
model.set('_user.notifications.kickstarter', 'hide')
exports.closeAwsNotification = (e, el) ->
model.set('_user.flags.aws_migrating', 'hide')
# ========== CRON ==========

View file

@ -123,6 +123,13 @@
</div>
{/}
{#if equal(_user.flags.aws_migrating,'show')}
<div class='alert'>
<a x-bind="click:closeAwsNotification" class='pull-right'>Dismiss</a>
Hey guys, Tyler here. Working on migrating to AWS to fix the "Offline" error people are experiencing (follow <a href="https://github.com/lefnire/habitrpg/issues/91">issue here</a>. Hang tight.
</div>
{/}
<div class='pull-right'>
{#unless _loggedIn}
<a class="btn btn-small btn-info" href="#login-modal" data-toggle="modal">Login / Register</a>