Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show sidebar on /r/mod and multireddit modmail pages.

  • Loading branch information...
commit 6ec9f8cd59f82ab293fca568a011284d9ecd1139 1 parent 8d83903
Neil Williams spladug authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 r2/r2/controllers/listingcontroller.py
8 r2/r2/controllers/listingcontroller.py
View
@@ -638,7 +638,6 @@ def GET_about(self, vuser):
return Reddit(content = Wrapped(vuser)).render()
class MessageController(ListingController):
- show_sidebar = False
show_nums = False
render_cls = MessagePage
allow_stylesheets = False
@@ -647,6 +646,13 @@ class MessageController(ListingController):
extra_page_classes = ['messages-page']
@property
+ def show_sidebar(self):
+ if c.default_sr and not isinstance(c.site, (ModSR, MultiReddit)):
+ return False
+
+ return self.where in ("moderator", "multi")
+
+ @property
def menus(self):
if c.default_sr and self.where in ('inbox', 'messages', 'comments',
'selfreply', 'unread'):
Please sign in to comment.
Something went wrong with that request. Please try again.