Display active_accounts in the subreddit infobar.

Add a CSS class for users-online.
This commit is contained in:
Jason Harvey
2012-08-16 19:23:04 -07:00
parent 49607b72d1
commit f80eb468c0
2 changed files with 16 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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">