Highlight new comments: enable for mods

This commit is contained in:
Chad Birch
2015-01-28 14:23:51 -07:00
parent 3216377cbc
commit fef95e3642
2 changed files with 14 additions and 2 deletions

View File

@@ -292,8 +292,9 @@ class FrontController(RedditController):
previous_visits = None
if comment:
c.focal_comment = comment._id36
elif (c.user_is_loggedin and c.user.gold and
c.user.pref_highlight_new_comments):
elif (c.user_is_loggedin and
(c.user.gold or sr.is_moderator(c.user)) and
c.user.pref_highlight_new_comments):
previous_visits = self._comment_visits(article, c.user, c.start_time)
# check if we just came from the submit page

View File

@@ -326,6 +326,17 @@
${checkbox(_wsf("use a %(creddit_link)s to automatically renew my gold if it expires", creddit_link=creddit_link), "creddit_autorenew")}
</td>
</tr>
%elif c.user.is_moderator_somewhere:
<tr class="gold-accent">
<th>${_("gold options")}</th>
<td class="prefright">
${checkbox(_("highlight new comments"), "highlight_new_comments")}
<% gold_link = unsafe('&#32;<a href="/gold/about">' + _("reddit gold") + '</a>') %>
&#32;<span class="little gray">
(${_wsf("since you don't have %(gold_link)s, this will only apply in subreddits you moderate", gold_link=gold_link)})
</span>
</td>
</tr>
%endif
<tr>