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

This commit is contained in:
Neil Williams
2012-04-27 08:28:38 -07:00
parent 8d8390384e
commit 6ec9f8cd59

View File

@@ -638,7 +638,6 @@ class UserController(ListingController):
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',