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:
Tim 2015-07-20 01:16:43 +02:00
commit b8f2ea951d
26 changed files with 145 additions and 1141 deletions

View file

@ -30,7 +30,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>
% if user != None:
@ -127,11 +126,11 @@ from plexpy import helpers
<table id="user_ip_table" class="display" width="100%">
<thead>
<tr>
<th class="all" align="left">Last seen</th>
<th class="all" align="left">IP Address</th>
<th class="min-tablet" align="left">Play Count</th>
<th class="min-tablet" align="left">Platform (Last Seen)</th>
<th class="desktop" align="left">Last Watched</th>
<th align="left">Last seen</th>
<th align="left">IP Address</th>
<th align="left">Play Count</th>
<th align="left">Platform (Last Seen)</th>
<th align="left">Last Watched</th>
</tr>
</thead>
</table>
@ -180,23 +179,23 @@ from plexpy import helpers
<span class="set-username">${data['friendly_name']}</span>
</strong></h3>
</div>
<div class="colvis-button-bar" id="button-bar-history">
<div class="colvis-button-bar hidden-phone" id="button-bar-history">
</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="never" 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="all" 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>
@ -220,24 +219,24 @@ from plexpy import helpers
<span class="set-username">${data['friendly_name']}</span>
</strong></h3>
</div>
<div class="colvis-button-bar" id="button-bar-sync">
<div class="colvis-button-bar hidden-phone" id="button-bar-sync">
</div>
</div>
<div class="table-card-back">
<table class="display" id="sync_table" width="100%">
<thead>
<tr>
<th class="desktop" align='left' id="state">State</th>
<th class="never" align='left' id="username">Username</th>
<th class="all" align='left' id="sync_title">Title</th>
<th class="desktop" align='left' id="type">Type</th>
<th class="all" align='left' id="device">Device</th>
<th class="desktop" align='left' id="sync_platform">Platform</th>
<th class="desktop" align='left' id="size">Total Size</th>
<th class="min-tablet" align='left' id="items">Total Items</th>
<th class="desktop" align='left' id="converted">Converted</th>
<th class="desktop" align='left' id="downloaded">Downloaded</th>
<th class="desktop" align='left' id="sync_percent_complete">Complete</th>
<th align='left' id="state">State</th>
<th align='left' id="username">Username</th>
<th align='left' id="sync_title">Title</th>
<th align='left' id="type">Type</th>
<th align='left' id="device">Device</th>
<th align='left' id="sync_platform">Platform</th>
<th align='left' id="size">Total Size</th>
<th align='left' id="items">Total Items</th>
<th align='left' id="converted">Converted</th>
<th align='left' id="downloaded">Downloaded</th>
<th align='left' id="sync_percent_complete">Complete</th>
</tr>
</thead>
<tbody>
@ -255,7 +254,6 @@ from plexpy import helpers
<%def name="javascriptIncludes()">
<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>
<script src="interfaces/default/js/tables/history_table.js"></script>
@ -315,8 +313,8 @@ from plexpy import helpers
history_table = $('#history_table').DataTable(history_table_options);
history_table.column(1).visible(false);
var colvis = new $.fn.dataTable.ColVis( history_table );
$( colvis.button() ).appendTo('#button-bar-history');
var colvis = new $.fn.dataTable.ColVis(history_table);
$(colvis.button()).appendTo('#button-bar-history');
});
$( "#ip-tab-btn" ).one( "click", function() {
@ -344,6 +342,7 @@ from plexpy import helpers
}
}
sync_table = $('#sync_table').DataTable(sync_table_options);
history_table.column(1).visible(false);
var colvis_sync = new $.fn.dataTable.ColVis( sync_table );
$( colvis_sync.button() ).appendTo('#button-bar-sync');