From 4b483360983e7154e2565a0bb47d11d94120619c Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Wed, 16 Jan 2013 18:56:06 -0500 Subject: [PATCH] aws notification --- src/app/index.coffee | 6 +++++- views/app/index.html | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/index.coffee b/src/app/index.coffee index 5ce8ca10bb..ae8460665a 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -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 ========== diff --git a/views/app/index.html b/views/app/index.html index 62690ac735..0089ae6b20 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -123,6 +123,13 @@ {/} + {#if equal(_user.flags.aws_migrating,'show')} +
+ Dismiss + Hey guys, Tyler here. Working on migrating to AWS to fix the "Offline" error people are experiencing (follow issue here. Hang tight. +
+ {/} +
{#unless _loggedIn} Login / Register