From 6ec9f8cd59f82ab293fca568a011284d9ecd1139 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Fri, 27 Apr 2012 08:28:38 -0700 Subject: [PATCH] Show sidebar on /r/mod and multireddit modmail pages. --- r2/r2/controllers/listingcontroller.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index 71a9b0ac4f..a3ac158855 100755 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -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 @@ -646,6 +645,13 @@ class MessageController(ListingController): # conceptually fit for styling these pages. 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',