Add option to include current activity in the history tables

This commit is contained in:
JonnyWong16 2016-08-14 19:40:47 -07:00
parent 17a7019c60
commit b68ca67386
5 changed files with 21 additions and 2 deletions

View file

@ -2710,6 +2710,13 @@ div[id^='media_info_child'] div[id^='media_info_child'] div.dataTables_scrollHea
.dataTables_scrollBody {
-webkit-overflow-scrolling: touch;
}
.current-activity-row {
background-color: rgba(255,255,255,.1) !important;
}
.current-activity-row:hover {
background-color: rgba(255,255,255,0.125) !important;
}
#search_form {
width: 300px;
padding: 8px 15px;
@ -3015,4 +3022,4 @@ a:hover .overlay-refresh-image:hover {
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
}
}

View file

@ -319,6 +319,9 @@ history_table_options = {
history_table.row(row).child(childTableFormat(rowData)).show();
}
if (rowData['state'] !== null) {
$(row).addClass('current-activity-row');
}
}
}

View file

@ -123,6 +123,12 @@
</label>
<p class="help-block">Group successive play history by the same user as a single entry in the tables and watch statistics.</p>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="history_table_activity" name="history_table_activity" value="1" ${config['history_table_activity']}> Current Activity in History Tables
</label>
<p class="help-block">Include current activity in the history tables. Statistics will not be counted until the stream has ended.</p>
</div>
<div class="padded-header">
<h3>Backup</h3>