forked from GitHub/dbot
oops
This commit is contained in:
parent
278bc8b93c
commit
dbac28cad6
@ -1,51 +1,13 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
script(type="text/javascript", src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js")
|
div.page-header.profile_page-header
|
||||||
|
h1
|
||||||
script
|
#{connection}
|
||||||
$(document).ready(function(){
|
div.span9
|
||||||
// Allowing forcing of string stats data to sort as numeric
|
each profile, key in profiles
|
||||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
if profile.hasOwnProperty('profile') && profile.profile.avatar
|
||||||
"forcenum-pre": function ( a ) {
|
div.span2
|
||||||
a = a.replace("\,", "");
|
a(href='/profile/'+connection+'/'+encodeURIComponent(key))
|
||||||
return parseFloat( a );
|
h3= profile.profile.primary
|
||||||
},
|
img.profile_avatar(src="#{profile.profile.avatar}")
|
||||||
|
|
||||||
"forcenum-asc": function ( a, b ) {
|
|
||||||
return a - b;
|
|
||||||
},
|
|
||||||
|
|
||||||
"forcenum-desc": function ( a, b ) {
|
|
||||||
return b - a;
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
$('.tip').tooltip();
|
|
||||||
$('.data').dataTable({
|
|
||||||
"aoColumnDefs": [
|
|
||||||
{ "sType": "forcenum",
|
|
||||||
"asSorting": [ "desc", "asc" ],
|
|
||||||
"aTargets": [ 1, 2, 3, 4, 5 ] }
|
|
||||||
],
|
|
||||||
"bPaginate": false,
|
|
||||||
"bFilter": false,
|
|
||||||
"bLengthChange": false,
|
|
||||||
"oLanguage": {
|
|
||||||
"sInfo": "",
|
|
||||||
"sInfoEmpty": "",
|
|
||||||
"sInfoFiltered": ""
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
div.page-header.profile_page-header
|
|
||||||
h1
|
|
||||||
#{connection}
|
|
||||||
div.span9
|
|
||||||
each profile, key in profiles
|
|
||||||
if profile.hasOwnProperty('profile') && profile.profile.avatar
|
|
||||||
div.span2
|
|
||||||
a(href='/profile/'+connection+'/'+encodeURIComponent(key))
|
|
||||||
h3= profile.profile.primary
|
|
||||||
img.profile_avatar(src="#{profile.profile.avatar}")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user