From d63fba2d59d20f53cd1bf5698f99dce562575caa Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Tue, 20 Nov 2012 20:14:23 -0500 Subject: [PATCH] Add multireddit for /r/mod. --- r2/r2/lib/pages/pages.py | 7 +++++-- r2/r2/lib/strings.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/pages/pages.py b/r2/r2/lib/pages/pages.py index d0c7c34f3..52e7bdb1c 100755 --- a/r2/r2/lib/pages/pages.py +++ b/r2/r2/lib/pages/pages.py @@ -311,8 +311,11 @@ class Reddit(Templated): ps.append(self.sr_admin_menu()) if srs: - ps.append(SideContentBox(_('these subreddits'), - [SubscriptionBox(srs)])) + if isinstance(c.site, ModSR): + box = SubscriptionBox(srs, multi_text=strings.mod_multi) + else: + box = SubscriptionBox(srs) + ps.append(SideContentBox(_('these subreddits'), [box])) # don't show the subreddit info bar on cnames unless the option is set if not isinstance(c.site, FakeSubreddit) and (not c.cname or c.site.show_cname_sidebar): diff --git a/r2/r2/lib/strings.py b/r2/r2/lib/strings.py index a42b585f5..5621e730b 100644 --- a/r2/r2/lib/strings.py +++ b/r2/r2/lib/strings.py @@ -182,6 +182,7 @@ Note: there are a couple of places outside of your subreddit where someone can c an_error_occurred_friendly = _("an error occurred. please try again later!"), rate_limit = _("please wait a few seconds and try again."), subscribed_multi = _("multireddit of your subscriptions"), + mod_multi = _("multireddit of subreddits you moderate"), ) class StringHandler(object):