Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Style banned subreddits in 'moderator of' list.
Browse files Browse the repository at this point in the history
Banned subreddits show up in the moderater list when viewing a user
profile in admin mode.  This makes it easy to distinguish those from
other subreddits.
  • Loading branch information
madbook committed Dec 4, 2015
1 parent 6c4b783 commit 430d4b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions r2/r2/public/static/css/reddit.less
Expand Up @@ -7235,6 +7235,12 @@ dd { margin-left: 20px; }

#side-mod-list {
line-height: 1.5;

.sr-banned {
a {
color: @color-perma-ban;
}
}
}

#side-multi-list {
Expand Down
9 changes: 8 additions & 1 deletion r2/r2/templates/sidebarmodlist.html
Expand Up @@ -28,7 +28,14 @@

<ul id="side-mod-list">
%for sr in thing.subreddits:
<li>
<%
if sr.spammy():
sr_class = 'sr-banned'
else:
sr_class = ''
%>

<li class="${sr_class}">
<a href="${sr.path}" title="/r/${sr.name}">/r/${sr.name}</a>
%if sr.quarantine:
<span class="quarantine-stamp stamp">${quarantine_stamp()}</span>
Expand Down

0 comments on commit 430d4b7

Please sign in to comment.