mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
Added user count
This commit is contained in:
parent
0c20e29c41
commit
738c61350e
4 changed files with 10 additions and 8 deletions
|
@ -189,8 +189,11 @@ h2 {
|
|||
top: 0;
|
||||
width: 160px;
|
||||
}
|
||||
#chat .users .count {
|
||||
color: #bbb;
|
||||
padding: 0 8px;
|
||||
}
|
||||
#chat .users .user {
|
||||
display: block;
|
||||
padding: 0 8px;
|
||||
}
|
||||
#chat .messages {
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
<input type="checkbox" value="nick"/>
|
||||
<input type="checkbox" value="quit"/>
|
||||
<input type="checkbox" value="mode"/>
|
||||
<input type="checkbox" value="kick"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -97,6 +98,9 @@
|
|||
{{/channels}}
|
||||
</script>
|
||||
<script type="text/html" id="user">
|
||||
<div class="count">
|
||||
Users: {{users.length}}
|
||||
</div>
|
||||
{{#users}}
|
||||
<div class="user">
|
||||
{{name}}
|
||||
|
|
|
@ -123,12 +123,7 @@ $(function() {
|
|||
break;
|
||||
|
||||
case "user":
|
||||
var target = chat.find("#window-" + json.target);
|
||||
if (target.size() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
target = target.find(".users");
|
||||
var target = chat.find("#window-" + json.target).find(".users");
|
||||
target.html(render("#user", {users: json.data}));
|
||||
break;
|
||||
|
||||
|
|
2
node_modules/slate-irc
generated
vendored
2
node_modules/slate-irc
generated
vendored
|
@ -1 +1 @@
|
|||
Subproject commit f992e474d7ad7a79b129c289fb744c2522a99e8c
|
||||
Subproject commit 3cab2d2011e20d5cd2492e901cf029dbbff16006
|
Loading…
Reference in a new issue