Skip to content

Commit

Permalink
Use 'message the admins' in appropriate subreddit
Browse files Browse the repository at this point in the history
  • Loading branch information
Deimos committed Mar 21, 2013
1 parent b1ae35f commit e61de2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion r2/r2/lib/pages/pages.py
Expand Up @@ -410,8 +410,13 @@ def rightbox(self):
if total > len(moderators):
more_text = "...and %d more" % (total - len(moderators))
mod_href = "http://%s/about/moderators" % get_domain()

if '/r/%s' % c.site.name == g.admin_message_acct:
label = _('message the admins')
else:
label = _('message the moderators')
helplink = ("/message/compose?to=%%2Fr%%2F%s" % c.site.name,
"message the moderators")
label)
ps.append(SideContentBox(_('moderators'), moderators,
helplink = helplink,
more_href = mod_href,
Expand Down

0 comments on commit e61de2b

Please sign in to comment.