2012-12-24 06:47:47 +01:00
|
|
|
extends ../layout
|
2012-12-24 05:06:04 +01:00
|
|
|
|
|
|
|
block content
|
2013-01-21 00:07:33 +01:00
|
|
|
script(type="text/javascript", src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js")
|
|
|
|
|
|
|
|
script
|
|
|
|
$(document).ready(function(){
|
|
|
|
// Allowing forcing data such as lincent and wpl to sort as numeric
|
|
|
|
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|
|
|
"forcenum-pre": function ( a ) {
|
|
|
|
return parseFloat( a );
|
|
|
|
},
|
|
|
|
|
|
|
|
"forcenum-asc": function ( a, b ) {
|
|
|
|
return a - b;
|
|
|
|
},
|
|
|
|
|
|
|
|
"forcenum-desc": function ( a, b ) {
|
|
|
|
return b - a;
|
|
|
|
}
|
|
|
|
} );
|
|
|
|
|
|
|
|
$('.data').dataTable({
|
|
|
|
"aoColumnDefs": [
|
|
|
|
{ "sType": "forcenum", "aTargets": [ 3, 4 ] }
|
|
|
|
],
|
|
|
|
"bPaginate": false,
|
|
|
|
"bLengthChange": false,
|
|
|
|
"oLanguage": {
|
|
|
|
"sInfo": "_TOTAL_ users",
|
|
|
|
"sInfoEmpty": "No users :(",
|
|
|
|
"sInfoFiltered": "filtered (_MAX_ total)"
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2013-01-08 07:14:58 +01:00
|
|
|
h3 Users of #{channel} on #{connection}
|
2012-12-24 05:06:04 +01:00
|
|
|
div#backlink
|
|
|
|
a(href='/channels/'+connection) « Channel List
|
2013-01-10 23:23:51 +01:00
|
|
|
div#row
|
2013-01-21 00:07:33 +01:00
|
|
|
table.table.table-hover.data
|
2013-01-10 23:23:51 +01:00
|
|
|
thead
|
2013-01-11 23:39:32 +01:00
|
|
|
tr
|
|
|
|
th Users
|
|
|
|
th Lines
|
|
|
|
th Words
|
|
|
|
th Lincent
|
|
|
|
th Verbosity
|
|
|
|
th Mentions
|
2013-01-10 23:23:51 +01:00
|
|
|
tbody
|
2013-01-15 21:44:15 +01:00
|
|
|
-each nick in nicks
|
2013-01-10 23:23:51 +01:00
|
|
|
tr
|
|
|
|
td
|
2013-01-11 23:39:32 +01:00
|
|
|
a(href='/user/'+connection+'/'+channel.substr(1,channel.length)+'/'+nick.primary)
|
|
|
|
#{nick.display}
|
2013-01-10 23:23:51 +01:00
|
|
|
span
|
2013-01-15 21:44:15 +01:00
|
|
|
if nick.online
|
|
|
|
if nick.active
|
|
|
|
span.label.label-success Active
|
|
|
|
else
|
|
|
|
span.label.label-important Inactive
|
|
|
|
else
|
|
|
|
span.label Offline
|
2013-01-11 23:39:32 +01:00
|
|
|
td
|
2013-01-15 16:10:28 +01:00
|
|
|
#{nick.fields.lines.data}
|
2013-01-11 23:39:32 +01:00
|
|
|
td
|
2013-01-15 16:10:28 +01:00
|
|
|
#{nick.fields.words.data}
|
2013-01-11 23:39:32 +01:00
|
|
|
td
|
2013-01-15 16:10:28 +01:00
|
|
|
#{nick.fields.lincent.data}
|
2013-01-11 23:39:32 +01:00
|
|
|
td
|
2013-01-15 16:10:28 +01:00
|
|
|
#{nick.fields.wpl.data}
|
2013-01-11 23:39:32 +01:00
|
|
|
td
|
2013-01-15 16:10:28 +01:00
|
|
|
#{nick.fields.in_mentions.data}
|