Skip to content

Commit

Permalink
Don't show welcome message for interstitials
Browse files Browse the repository at this point in the history
  • Loading branch information
Florence Yeun committed Aug 5, 2015
1 parent 8b7509b commit 613eead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions r2/r2/controllers/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def GET_over18(self):
content=Over18(),
show_sidebar=False,
show_newsletterbar=False,
show_welcomebar=False,
robots='noindex,nofollow').render()

@validate(
Expand All @@ -108,6 +109,7 @@ def GET_quarantine(self, dest):
content=Quarantine(sr.name, logged_in, email_verified),
show_sidebar=False,
show_newsletterbar=False,
show_welcomebar=False,
robots='noindex,nofollow').render()

@validate(VModhash(fatal=False),
Expand Down
3 changes: 2 additions & 1 deletion r2/r2/lib/pages/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def __init__(self, space_compress=None, nav_menus=None, loginbox=True,
extra_class="gold")

if not c.user_is_loggedin:
self.welcomebar = WelcomeBar()
if getattr(self, "show_welcomebar", True):
self.welcomebar = WelcomeBar()
if getattr(self, "show_newsletterbar", True):
self.newsletterbar = NewsletterBar()

Expand Down

0 comments on commit 613eead

Please sign in to comment.