forked from GitHub/dbot
commit
e0d3073ee5
@ -58,8 +58,10 @@ var pages = function(dbot) {
|
|||||||
userData.inactive.sort(userSort);
|
userData.inactive.sort(userSort);
|
||||||
userData.offline.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,
|
res.render('users', { 'name': dbot.config.name, 'connection': connection,
|
||||||
'channel': channel, 'nicks': userData });
|
'channel': channel, 'nicks': userDataSorted });
|
||||||
} else {
|
} else {
|
||||||
res.render_core('error', { 'name': dbot.config.name, 'message': 'No such connection or channel.' });
|
res.render_core('error', { 'name': dbot.config.name, 'message': 'No such connection or channel.' });
|
||||||
}
|
}
|
||||||
|
@ -15,46 +15,18 @@ block content
|
|||||||
th Verbosity
|
th Verbosity
|
||||||
th Mentions
|
th Mentions
|
||||||
tbody
|
tbody
|
||||||
-each nick in nicks.active
|
-each nick in nicks
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
a(href='/user/'+connection+'/'+channel.substr(1,channel.length)+'/'+nick.primary)
|
a(href='/user/'+connection+'/'+channel.substr(1,channel.length)+'/'+nick.primary)
|
||||||
#{nick.display}
|
#{nick.display}
|
||||||
span
|
span
|
||||||
|
if nick.online
|
||||||
|
if nick.active
|
||||||
span.label.label-success Active
|
span.label.label-success Active
|
||||||
td
|
else
|
||||||
#{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
|
span.label.label-important Inactive
|
||||||
td
|
else
|
||||||
#{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
|
span.label Offline
|
||||||
td
|
td
|
||||||
#{nick.fields.lines.data}
|
#{nick.fields.lines.data}
|
||||||
|
Loading…
Reference in New Issue
Block a user