mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Highlight new comments: enable for mods
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(' <a href="/gold/about">' + _("reddit gold") + '</a>') %>
|
||||
 <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>
|
||||
|
||||
Reference in New Issue
Block a user