mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Display active_accounts in the subreddit infobar.
Add a CSS class for users-online.
This commit is contained in:
@@ -5655,3 +5655,11 @@ tr.gold-accent + tr > td {
|
||||
#otp-secret-info .secret {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.users-online {
|
||||
margin-bottom: .25em;
|
||||
}
|
||||
|
||||
.users-online .word, .users-online .number:after {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,14 @@
|
||||
</h1>
|
||||
|
||||
${addremove_button(thing.sr)}
|
||||
${unsafe(Score.readers(thing.subscribers))}
|
||||
<span class="subscribers">${unsafe(Score.readers(thing.subscribers))}</span>
|
||||
<p class="users-online" title="${_('number of logged-in users in the past 15 minutes')}">
|
||||
%if thing.sr.accounts_active < 100 and not c.user_is_admin:
|
||||
${unsafe(Score.users_online(100, prepend='<'))}
|
||||
%else:
|
||||
${unsafe(Score.users_online(thing.sr.accounts_active))}
|
||||
%endif
|
||||
</p>
|
||||
|
||||
%if thing.sr.moderator:
|
||||
<div class="leavemoderator">
|
||||
|
||||
Reference in New Issue
Block a user