mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 22:38:09 -05:00
Show sidebar on /r/mod and multireddit modmail pages.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user