Skip to content

Commit

Permalink
don't show first time welcome message on embed pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandersimoes committed Mar 4, 2014
1 parent 772b9ec commit 80bf03f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oec/general/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='https://docs.google.com/forms/d/1NHkCGQR2u796RMZgo1bYUBbNPnpm1cWAX0kp6nnfwqE/viewform' target='_blank'>let us know what you think</a>.", "first_time")

lang = request.args.get('lang', None)
Expand Down
2 changes: 1 addition & 1 deletion oec/html/explore/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h3>{{ _('Short URL') }}</h3>
<script>

var same_origin = false,
in_the_wild = false,
in_the_wild = true,
in_explore_page = false;

try {
Expand Down

0 comments on commit 80bf03f

Please sign in to comment.