Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add .subreddits-page class to subreddit listing pages
Browse files Browse the repository at this point in the history
This adds .subreddits-page to /subreddits/mine and /subreddits/search
  • Loading branch information
MelissaCole committed Apr 21, 2015
1 parent 7f1a728 commit 0addf6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions r2/r2/controllers/front.py
Expand Up @@ -926,6 +926,7 @@ def GET_search_reddits(self, query, reverse, after, count, num):
res = SubredditsPage(content=content,
prev_search=query,
elapsed_time=etime,
page_classes=['subreddits-page'],
# update if we ever add sorts
search_params={},
title=_("search results"),
Expand Down
1 change: 1 addition & 0 deletions r2/r2/controllers/listingcontroller.py
Expand Up @@ -1332,6 +1332,7 @@ def GET_listing(self, where, **env):

class MyredditsController(ListingController):
render_cls = MySubredditsPage
extra_page_classes = ListingController.extra_page_classes + ['subreddits-page']

@property
def menus(self):
Expand Down

0 comments on commit 0addf6c

Please sign in to comment.