mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Clean up some code to test updater.
This commit is contained in:
parent
44cbb10bcd
commit
4fbcff3b59
1 changed files with 68 additions and 68 deletions
|
@ -8,7 +8,7 @@
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="body()">
|
<%def name="body()">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<div class="wellheader-bg">
|
<div class="wellheader-bg">
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='container-fluid'>
|
<div class='container-fluid'>
|
||||||
<div class='row-fluid'>
|
<div class='row-fluid'>
|
||||||
<div class='span12'>
|
<div class='span12'>
|
||||||
|
@ -50,76 +50,76 @@
|
||||||
<script src="interfaces/default/js/moment-with-locale.js"></script>
|
<script src="interfaces/default/js/moment-with-locale.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var oTable = $('#usersTable').dataTable({
|
var oTable = $('#usersTable').dataTable({
|
||||||
"language": {
|
"language": {
|
||||||
"search": "Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ entries per page",
|
"lengthMenu":"Show _MENU_ entries per page",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ entries",
|
"info":"Showing _START_ to _END_ of _TOTAL_ entries",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"(filtered from _MAX_ total entries)",
|
"infoFiltered":"(filtered from _MAX_ total entries)",
|
||||||
"emptyTable": "No data in table",
|
"emptyTable": "No data in table",
|
||||||
},
|
},
|
||||||
"destroy": true,
|
"destroy": true,
|
||||||
"processing": false,
|
"processing": false,
|
||||||
"serverSide": true,
|
"serverSide": true,
|
||||||
"pageLength": 10,
|
"pageLength": 10,
|
||||||
"order": [ 0, 'asc'],
|
"order": [ 0, 'asc'],
|
||||||
"ajax": {
|
"ajax": {
|
||||||
"url": "get_user_list"
|
"url": "get_user_list"
|
||||||
},
|
},
|
||||||
"bLengthChange": true,
|
"bLengthChange": true,
|
||||||
"bInfo": true,
|
"bInfo": true,
|
||||||
"bAutoWidth": true,
|
"bAutoWidth": true,
|
||||||
"aaSorting": [[ 0, "asc" ]],
|
"aaSorting": [[ 0, "asc" ]],
|
||||||
"bStateSave": true,
|
"bStateSave": true,
|
||||||
"bSortClasses": true,
|
"bSortClasses": true,
|
||||||
"sPaginationType": "bootstrap",
|
"sPaginationType": "bootstrap",
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
"targets": [0],
|
"targets": [0],
|
||||||
"data": null,
|
"data": null,
|
||||||
"createdCell": function (td, cellData, rowData, row, col) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
if (rowData['user_thumb'] === '') {
|
if (rowData['user_thumb'] === '') {
|
||||||
$(td).html('<img src="interfaces/default/images/gravatar-default-80x80.png" alt="User Logo"/>');
|
$(td).html('<img src="interfaces/default/images/gravatar-default-80x80.png" alt="User Logo"/>');
|
||||||
} else {
|
} else {
|
||||||
$(td).html('<img src="' + rowData['user_thumb'] + '" alt="User Logo"/>');
|
$(td).html('<img src="' + rowData['user_thumb'] + '" alt="User Logo"/>');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"orderable": false,
|
||||||
|
"className": "users-poster-face",
|
||||||
|
"width": "40px"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": [1],
|
||||||
|
"data": "user"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"targets": [2],
|
||||||
|
"data": "time",
|
||||||
|
"render": function ( data, type, full ) {
|
||||||
|
return moment(data, "X").fromNow();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"orderable": false,
|
{
|
||||||
"className": "users-poster-face",
|
"targets": [3],
|
||||||
"width": "40px"
|
"data": "ip_address"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"targets": [1],
|
"targets": [4],
|
||||||
"data": "user"
|
"data": "plays"
|
||||||
},
|
|
||||||
{
|
|
||||||
"targets": [2],
|
|
||||||
"data": "time",
|
|
||||||
"render": function ( data, type, full ) {
|
|
||||||
return moment(data, "X").fromNow();
|
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"drawCallback": function (settings) {
|
||||||
|
// Jump to top of page
|
||||||
|
$('html,body').scrollTop(0);
|
||||||
|
$('#ajaxMsg').addClass('success').fadeOut();
|
||||||
},
|
},
|
||||||
{
|
"preDrawCallback": function(settings) {
|
||||||
"targets": [3],
|
$('#ajaxMsg').html("<div class='msg'><span class='ui-icon ui-icon-check'></span>Fetching rows...</div>");
|
||||||
"data": "ip_address"
|
$('#ajaxMsg').addClass('success').fadeIn();
|
||||||
},
|
|
||||||
{
|
|
||||||
"targets": [4],
|
|
||||||
"data": "plays"
|
|
||||||
}
|
}
|
||||||
],
|
});
|
||||||
"drawCallback": function (settings) {
|
|
||||||
// Jump to top of page
|
|
||||||
$('html,body').scrollTop(0);
|
|
||||||
$('#ajaxMsg').addClass('success').fadeOut();
|
|
||||||
},
|
|
||||||
"preDrawCallback": function(settings) {
|
|
||||||
$('#ajaxMsg').html("<div class='msg'><span class='ui-icon ui-icon-check'></span>Fetching rows...</div>");
|
|
||||||
$('#ajaxMsg').addClass('success').fadeIn();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
</script>
|
||||||
</script>
|
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue