mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
commit
e0d3073ee5
@ -58,8 +58,10 @@ var pages = function(dbot) {
|
||||
userData.inactive.sort(userSort);
|
||||
userData.offline.sort(userSort);
|
||||
|
||||
var userDataSorted = (userData.active.concat(userData.inactive)).concat(userData.offline);
|
||||
|
||||
res.render('users', { 'name': dbot.config.name, 'connection': connection,
|
||||
'channel': channel, 'nicks': userData });
|
||||
'channel': channel, 'nicks': userDataSorted });
|
||||
} else {
|
||||
res.render_core('error', { 'name': dbot.config.name, 'message': 'No such connection or channel.' });
|
||||
}
|
||||
|
@ -15,47 +15,19 @@ block content
|
||||
th Verbosity
|
||||
th Mentions
|
||||
tbody
|
||||
-each nick in nicks.active
|
||||
-each nick in nicks
|
||||
tr
|
||||
td
|
||||
a(href='/user/'+connection+'/'+channel.substr(1,channel.length)+'/'+nick.primary)
|
||||
#{nick.display}
|
||||
span
|
||||
span.label.label-success Active
|
||||
td
|
||||
#{nick.fields.lines.data}
|
||||
td
|
||||
#{nick.fields.words.data}
|
||||
td
|
||||
#{nick.fields.lincent.data}
|
||||
td
|
||||
#{nick.fields.wpl.data}
|
||||
td
|
||||
#{nick.fields.in_mentions.data}
|
||||
-each nick in nicks.inactive
|
||||
tr
|
||||
td
|
||||
a(href='/user/'+connection+'/'+channel.substr(1,channel.length)+'/'+nick.primary)
|
||||
#{nick.display}
|
||||
span
|
||||
span.label.label-important Inactive
|
||||
td
|
||||
#{nick.fields.lines.data}
|
||||
td
|
||||
#{nick.fields.words.data}
|
||||
td
|
||||
#{nick.fields.lincent.data}
|
||||
td
|
||||
#{nick.fields.wpl.data}
|
||||
td
|
||||
#{nick.fields.in_mentions.data}
|
||||
-each nick in nicks.offline
|
||||
tr
|
||||
td
|
||||
a(href='/user/'+connection+'/'+channel.substr(1,channel.length)+'/'+nick.primary)
|
||||
#{nick.display}
|
||||
span
|
||||
span.label Offline
|
||||
if nick.online
|
||||
if nick.active
|
||||
span.label.label-success Active
|
||||
else
|
||||
span.label.label-important Inactive
|
||||
else
|
||||
span.label Offline
|
||||
td
|
||||
#{nick.fields.lines.data}
|
||||
td
|
||||
|
Loading…
Reference in New Issue
Block a user