From 80bf03f2b58f55643840c5c17fa5ac55a47539bd Mon Sep 17 00:00:00 2001 From: Alex Simoes Date: Tue, 4 Mar 2014 14:31:45 -0500 Subject: [PATCH] don't show first time welcome message on embed pages --- oec/general/views.py | 2 +- oec/html/explore/embed.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oec/general/views.py b/oec/general/views.py index 8fbb8b23..de855774 100644 --- a/oec/general/views.py +++ b/oec/general/views.py @@ -44,7 +44,7 @@ def before_request(): else: session['first_time'] = True - if session['first_time']: + if session['first_time'] and request.endpoint != "explore.embed": flash("Welcome! You may have noticed our recent redesign, please let us know what you think.", "first_time") lang = request.args.get('lang', None) diff --git a/oec/html/explore/embed.html b/oec/html/explore/embed.html index b820192f..d001e7d5 100644 --- a/oec/html/explore/embed.html +++ b/oec/html/explore/embed.html @@ -160,7 +160,7 @@

{{ _('Short URL') }}