From 1009726b51c24fdfd3808c5735ae982fd2b26556 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 6 May 2013 06:07:04 +0000 Subject: [PATCH 1/3] almost done X users browsing this thread feature. there is one bug where anonymous users do not get disconnected from the room, so I'll have to figure that out later --- public/css/style.less | 13 +++++++++++++ public/templates/topic.tpl | 22 ++++++++++++++++++--- src/websockets.js | 39 +++++++++++++++++++++++++++----------- 3 files changed, 60 insertions(+), 14 deletions(-) diff --git a/public/css/style.less b/public/css/style.less index 0850e2b562..13c2f43c56 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -260,3 +260,16 @@ footer.footer { } } } + + +#thread_active_users { + float: right; + color: rgb(153,153,153); + +} + +#thread_active_users strong { + color: rgb(100,100,100); + font-weight: 600; + cursor: pointer; +} \ No newline at end of file diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 1359100584..29628a6641 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -2,9 +2,8 @@ - -