mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Remove responsive datatables plugin - use normal media queries.
Set datatables stateSave to true as default Remove some old images. Change button on edit user modal
This commit is contained in:
parent
63f45d285d
commit
b8f2ea951d
26 changed files with 145 additions and 1141 deletions
|
@ -42,7 +42,6 @@ from plexpy import helpers
|
|||
<%def name="headIncludes()">
|
||||
<link rel="stylesheet" href="interfaces/default/css/plexwatch-tables.css">
|
||||
<link rel="stylesheet" href="interfaces/default/css/dataTables.colVis.css">
|
||||
<link rel="stylesheet" href="interfaces/default/css/dataTables.responsive.css">
|
||||
</%def>
|
||||
|
||||
<%def name="body()">
|
||||
|
@ -171,23 +170,23 @@ from plexpy import helpers
|
|||
% if data['type'] == 'movie' or data['type'] == 'episode' or data['type'] == 'show':
|
||||
<h3>Watch history for <strong>${data['title']}</strong></h3>
|
||||
</div>
|
||||
<div class="colvis-button-bar">
|
||||
<div class="colvis-button-bar hidden-phone">
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-card-back">
|
||||
<table class="display" id="history_table" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="all" align='left' id="time">Time</th>
|
||||
<th class="all" align='left' id="friendly_name">User</th>
|
||||
<th class="desktop" align='left' id="platform">Platform</th>
|
||||
<th class="desktop" align='left' id="ip_address">IP Address</th>
|
||||
<th class="min-tablet" align='left' id="title">Title</th>
|
||||
<th class="min-tablet" align='left' id="started">Started</th>
|
||||
<th class="desktop" align='left' id="paused_counter">Paused</th>
|
||||
<th class="min-tablet" align='left' id="stopped">Stopped</th>
|
||||
<th class="desktop" align='left' id="duration">Duration</th>
|
||||
<th class="min-tablet" align='left' id="percent_complete"></th>
|
||||
<th align='left' id="time">Time</th>
|
||||
<th align='left' id="friendly_name">User</th>
|
||||
<th align='left' id="platform">Platform</th>
|
||||
<th align='left' id="ip_address">IP Address</th>
|
||||
<th align='left' id="title">Title</th>
|
||||
<th align='left' id="started">Started</th>
|
||||
<th align='left' id="paused_counter">Paused</th>
|
||||
<th align='left' id="stopped">Stopped</th>
|
||||
<th align='left' id="duration">Duration</th>
|
||||
<th align='left' id="percent_complete"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -226,7 +225,6 @@ from plexpy import helpers
|
|||
<script src="interfaces/default/js/jquery.rateit.min.js"></script>
|
||||
<script src="interfaces/default/js/jquery.dataTables.min.js"></script>
|
||||
<script src="interfaces/default/js/dataTables.colVis.js"></script>
|
||||
<script src="interfaces/default/js/dataTables.responsive.js"></script>
|
||||
<script src="interfaces/default/js/jquery.dataTables.bootstrap.pagination.integration.js"></script>
|
||||
<script src="interfaces/default/js/moment-with-locale.js"></script>
|
||||
|
||||
|
@ -252,17 +250,12 @@ from plexpy import helpers
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
history_table = $('#history_table').DataTable(history_table_options);
|
||||
|
||||
// Hide the title column
|
||||
$("#title").removeClass("min-tablet").addClass("never");
|
||||
history_table.column(4).visible(false);
|
||||
|
||||
var colvis = new $.fn.dataTable.ColVis( history_table );
|
||||
$( colvis.button() ).appendTo('div.colvis-button-bar');
|
||||
var colvis = new $.fn.dataTable.ColVis(history_table);
|
||||
$(colvis.button()).appendTo('div.colvis-button-bar');
|
||||
});
|
||||
|
||||
</script>
|
||||
% elif data['type'] == 'show':
|
||||
<script src="interfaces/default/js/tables/history_table.js"></script>
|
||||
|
@ -277,16 +270,13 @@ from plexpy import helpers
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
history_table = $('#history_table').DataTable(history_table_options);
|
||||
|
||||
var colvis = new $.fn.dataTable.ColVis( history_table );
|
||||
$( colvis.button() ).appendTo('div.colvis-button-bar');
|
||||
var colvis = new $.fn.dataTable.ColVis(history_table);
|
||||
$(colvis.button()).appendTo('div.colvis-button-bar');
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
% endif
|
||||
|
||||
% if data['type'] == 'season':
|
||||
<script>
|
||||
$.ajax({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue