From 62c3b4cd02564b27747410438f3ef763b31349f1 Mon Sep 17 00:00:00 2001 From: Son NK Date: Fri, 30 Aug 2019 22:42:06 +0200 Subject: [PATCH] highlight newly created gen-email --- app/config.py | 3 +++ app/dashboard/templates/dashboard/index.html | 4 ++-- app/dashboard/views/custom_alias.py | 9 ++++++--- app/dashboard/views/index.py | 16 ++++++++++++++-- static/style.css | 6 ++++++ 5 files changed, 31 insertions(+), 7 deletions(-) diff --git a/app/config.py b/app/config.py index d3e941a8..e60ffdd6 100644 --- a/app/config.py +++ b/app/config.py @@ -86,3 +86,6 @@ FACEBOOK_CLIENT_SECRET = os.environ["FACEBOOK_CLIENT_SECRET"] # in seconds AVATAR_URL_EXPIRATION = 3600 * 24 * 7 # 1h*24h/d*7d=1week + +# session key +HIGHLIGHT_GEN_EMAIL_ID = "highlight_gen_email_id" \ No newline at end of file diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 0c6aec09..14621d1e 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -50,7 +50,7 @@ {% for gen_email in gen_emails %} - +
{{ gen_email.email }} @@ -77,7 +77,7 @@ {% if gen_email.enabled %}