2019-04-20 21:15:00 +00:00
|
|
|
<!DOCTYPE html>
|
2018-12-09 20:23:51 +00:00
|
|
|
<html lang="en">
|
2018-05-02 10:25:42 +00:00
|
|
|
<head>
|
|
|
|
<script src="{{base_url}}static/jquery/jquery-latest.min.js"></script>
|
|
|
|
<script src="{{base_url}}static/semantic/semantic.min.js"></script>
|
|
|
|
<script src="{{base_url}}static/jquery/tablesort.js"></script>
|
|
|
|
<link rel="stylesheet" href="{{base_url}}static/semantic/semantic.min.css">
|
|
|
|
|
|
|
|
<link rel="apple-touch-icon" sizes="120x120" href="{{base_url}}static/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{base_url}}static/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{base_url}}static/favicon-16x16.png">
|
|
|
|
<link rel="manifest" href="{{base_url}}static/manifest.json">
|
|
|
|
<link rel="mask-icon" href="{{base_url}}static/safari-pinned-tab.svg" color="#5bbad5">
|
|
|
|
<link rel="shortcut icon" href="{{base_url}}static/favicon.ico">
|
|
|
|
<meta name="msapplication-config" content="{{base_url}}static/browserconfig.xml">
|
|
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
|
|
|
|
<title>History - Bazarr</title>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #272727;
|
|
|
|
}
|
|
|
|
.fast.backward, .backward, .forward, .fast.forward {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.fast.backward, .backward, .forward, .fast.forward { pointer-events: auto; }
|
|
|
|
.fast.backward.disabled, .backward.disabled, .forward.disabled, .fast.forward.disabled { pointer-events: none; }
|
|
|
|
#bottommenu {
|
|
|
|
background-color: #333333;
|
|
|
|
box-shadow: 0 0 10px 1px #333;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
.label, .value {
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id='loader' class="ui page dimmer">
|
2018-10-17 03:25:04 +00:00
|
|
|
<div id="loader_text" class="ui indeterminate text loader">Loading...</div>
|
2018-05-02 10:25:42 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui container">
|
|
|
|
<table id="tablehistory" class="ui very basic selectable table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Episode</th>
|
|
|
|
<th>Episode Title</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-03-19 04:08:53 +00:00
|
|
|
%import ast
|
2018-05-02 10:25:42 +00:00
|
|
|
%import time
|
|
|
|
%import pretty
|
|
|
|
%for row in rows:
|
|
|
|
<tr class="selectable">
|
|
|
|
<td class="collapsing">
|
|
|
|
%if row[0] == 0:
|
2019-05-06 00:21:46 +00:00
|
|
|
<div class="ui inverted basic compact icon" data-tooltip="Subtitles file has been erased." data-inverted="" data-position="top left">
|
2018-05-02 10:25:42 +00:00
|
|
|
<i class="ui trash icon"></i>
|
|
|
|
</div>
|
|
|
|
%elif row[0] == 1:
|
2019-05-06 00:21:46 +00:00
|
|
|
<div class="ui inverted basic compact icon" data-tooltip="Subtitles file has been downloaded." data-inverted="" data-position="top left">
|
2018-05-02 10:25:42 +00:00
|
|
|
<i class="ui download icon"></i>
|
|
|
|
</div>
|
2019-03-19 04:08:53 +00:00
|
|
|
%elif row[0] == 2:
|
2019-05-06 00:21:46 +00:00
|
|
|
<div class="ui inverted basic compact icon" data-tooltip="Subtitles file has been manually downloaded." data-inverted="" data-position="top left">
|
2019-03-19 04:08:53 +00:00
|
|
|
<i class="ui user icon"></i>
|
|
|
|
</div>
|
|
|
|
%elif row[0] == 3:
|
2019-05-06 00:21:46 +00:00
|
|
|
<div class="ui inverted basic compact icon" data-tooltip="Subtitles file has been upgraded." data-inverted="" data-position="top left">
|
2019-03-19 04:08:53 +00:00
|
|
|
<i class="ui recycle icon"></i>
|
|
|
|
</div>
|
2019-08-23 00:02:11 +00:00
|
|
|
%elif row[0] == 4:
|
|
|
|
<div class="ui inverted basic compact icon" data-tooltip="Subtitles file has been manually uploaded." data-inverted="" data-position="top left">
|
|
|
|
<i class="ui cloud upload icon"></i>
|
|
|
|
</div>
|
2018-05-02 10:25:42 +00:00
|
|
|
%end
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{base_url}}episodes/{{row[6]}}">{{row[1]}}</a>
|
|
|
|
</td>
|
|
|
|
<td class="collapsing">
|
|
|
|
%if row[2] is not None:
|
|
|
|
% episode = row[2].split('x')
|
|
|
|
{{episode[0] + 'x' + episode[1].zfill(2)}}
|
|
|
|
%end
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
%if row[3] is not None:
|
|
|
|
{{row[3]}}
|
|
|
|
%else:
|
|
|
|
<em>Deleted episode</em>
|
|
|
|
%end
|
|
|
|
</td>
|
|
|
|
<td class="collapsing">
|
2018-11-06 22:52:09 +00:00
|
|
|
<div class="ui inverted" data-tooltip="{{time.strftime('%Y/%m/%d %H:%M', time.localtime(row[4]))}}" data-inverted="" data-position="top left">
|
2018-05-02 10:25:42 +00:00
|
|
|
{{pretty.date(int(row[4]))}}
|
|
|
|
</div>
|
|
|
|
</td>
|
2019-03-19 04:08:53 +00:00
|
|
|
<td>
|
2019-03-20 03:44:50 +00:00
|
|
|
% upgradable_criteria = (row[7], row[4], row[10])
|
2019-03-19 04:08:53 +00:00
|
|
|
% if upgradable_criteria in upgradable_episodes:
|
2019-05-10 13:24:11 +00:00
|
|
|
% if row[8] != "None":
|
|
|
|
% desired_languages = ast.literal_eval(str(row[8]))
|
|
|
|
% if row[11] == "True":
|
|
|
|
% forced_languages = [l + ":forced" for l in desired_languages]
|
|
|
|
% elif row[11] == "Both":
|
|
|
|
% forced_languages = [l + ":forced" for l in desired_languages] + desired_languages
|
|
|
|
% else:
|
|
|
|
% forced_languages = desired_languages
|
|
|
|
% end
|
|
|
|
% if row[9] in forced_languages:
|
|
|
|
<div class="ui inverted basic compact icon" data-tooltip="This subtitles is eligible to an upgrade." data-inverted="" data-position="top left">
|
|
|
|
<i class="ui green recycle icon upgrade"></i>{{row[5]}}
|
|
|
|
</div>
|
|
|
|
% else:
|
|
|
|
{{row[5]}}
|
|
|
|
% end
|
|
|
|
% end
|
2019-03-19 04:08:53 +00:00
|
|
|
% else:
|
2019-05-10 13:24:11 +00:00
|
|
|
{{row[5]}}
|
2019-04-24 00:05:06 +00:00
|
|
|
% end
|
2019-03-19 04:08:53 +00:00
|
|
|
</td>
|
2018-05-02 10:25:42 +00:00
|
|
|
</tr>
|
|
|
|
%end
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-07-13 12:15:44 +00:00
|
|
|
%try: page_size
|
|
|
|
%except NameError: page_size = "25"
|
2018-07-13 12:21:45 +00:00
|
|
|
%end
|
2018-07-11 12:50:11 +00:00
|
|
|
%if page_size != -1:
|
2018-05-02 10:25:42 +00:00
|
|
|
<div class="ui grid">
|
|
|
|
<div class="three column row">
|
|
|
|
<div class="column"></div>
|
|
|
|
<div class="center aligned column">
|
|
|
|
<i class="\\
|
|
|
|
%if page == '1':
|
|
|
|
disabled\\
|
|
|
|
%end
|
|
|
|
fast backward icon"></i>
|
|
|
|
<i class="\\
|
|
|
|
%if page == '1':
|
|
|
|
disabled\\
|
|
|
|
%end
|
|
|
|
backward icon"></i>
|
|
|
|
{{page}} / {{max_page}}
|
|
|
|
<i class="\\
|
|
|
|
%if int(page) == int(max_page):
|
|
|
|
disabled\\
|
|
|
|
%end
|
|
|
|
forward icon"></i>
|
|
|
|
<i class="\\
|
|
|
|
%if int(page) == int(max_page):
|
|
|
|
disabled\\
|
|
|
|
%end
|
|
|
|
fast forward icon"></i>
|
|
|
|
</div>
|
|
|
|
<div class="right floated right aligned column">Total records: {{row_count}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-11 12:50:11 +00:00
|
|
|
%end
|
2018-05-02 10:25:42 +00:00
|
|
|
</div>
|
|
|
|
<div id='bottommenu' class="ui fluid inverted bottom fixed five item menu">
|
|
|
|
<div class="ui small statistics">
|
|
|
|
<div class="statistic">
|
|
|
|
<div class="text value">
|
|
|
|
<br>
|
|
|
|
Series
|
|
|
|
<br>
|
|
|
|
statistics
|
|
|
|
</div>
|
|
|
|
<div class="label">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="statistic">
|
|
|
|
<div class="value">
|
|
|
|
{{stats[0]}}
|
|
|
|
</div>
|
|
|
|
<div class="label">
|
|
|
|
Since 24 hours
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="statistic">
|
|
|
|
<div class="value">
|
|
|
|
{{stats[1]}}
|
|
|
|
</div>
|
|
|
|
<div class="label">
|
|
|
|
Since one week
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="statistic">
|
|
|
|
<div class="value">
|
|
|
|
{{stats[2]}}
|
|
|
|
</div>
|
|
|
|
<div class="label">
|
|
|
|
Since one year
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="statistic">
|
|
|
|
<div class="value">
|
|
|
|
{{stats[3]}}
|
|
|
|
</div>
|
|
|
|
<div class="label">
|
|
|
|
Total
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br><br><br><br>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
if (sessionStorage.scrolly) {
|
|
|
|
$(window).scrollTop(sessionStorage.scrolly);
|
|
|
|
sessionStorage.clear();
|
|
|
|
}
|
|
|
|
|
2019-03-22 00:26:48 +00:00
|
|
|
$('a').on('click', function(){
|
2018-05-02 10:25:42 +00:00
|
|
|
sessionStorage.scrolly=$(window).scrollTop();
|
|
|
|
|
|
|
|
$('#loader').addClass('active');
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
2018-05-02 10:25:42 +00:00
|
|
|
|
2018-12-09 20:23:51 +00:00
|
|
|
$('.fast.backward').on('click', function(){
|
2018-05-02 10:25:42 +00:00
|
|
|
loadURLseries(1);
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
|
|
|
$('.backward:not(.fast)').on('click', function(){
|
2018-05-02 10:25:42 +00:00
|
|
|
loadURLseries({{int(page)-1}});
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
|
|
|
$('.forward:not(.fast)').on('click', function(){
|
2018-05-02 10:25:42 +00:00
|
|
|
loadURLseries({{int(page)+1}});
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
|
|
|
$('.fast.forward').on('click', function(){
|
2018-05-02 10:25:42 +00:00
|
|
|
loadURLseries({{int(max_page)}});
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
2018-05-02 10:25:42 +00:00
|
|
|
</script>
|