2018-12-09 20:23:51 +00:00
|
|
|
<html lang="en">
|
2018-05-02 10:25:42 +00:00
|
|
|
<head>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<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;
|
|
|
|
}
|
|
|
|
#fondblanc {
|
|
|
|
background-color: #ffffff;
|
2018-12-09 20:23:51 +00:00
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: 0 0 5px 5px #ffffff;
|
2018-05-02 10:25:42 +00:00
|
|
|
margin-top: 32px;
|
|
|
|
margin-bottom: 3em;
|
|
|
|
padding: 1em;
|
2018-10-12 17:01:32 +00:00
|
|
|
overflow-x:auto;
|
2018-05-02 10:25:42 +00:00
|
|
|
}
|
|
|
|
.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; }
|
2018-05-27 03:01:57 +00:00
|
|
|
.ui.tabular.menu > .disabled.item {
|
|
|
|
opacity: 0.45 !important;
|
|
|
|
pointer-events: none !important;
|
|
|
|
}
|
2018-05-02 10:25:42 +00:00
|
|
|
</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>
|
|
|
|
% include('menu.tpl')
|
2018-05-27 03:01:57 +00:00
|
|
|
|
2018-12-15 00:36:28 +00:00
|
|
|
% from config import settings
|
2018-05-27 03:01:57 +00:00
|
|
|
|
2018-05-02 10:25:42 +00:00
|
|
|
<div id="fondblanc" class="ui container">
|
|
|
|
<div class="ui top attached tabular menu">
|
2018-12-27 19:19:59 +00:00
|
|
|
<a id="series_tab" class="tabs item active" data-enabled="{{settings.general.getboolean('use_sonarr')}}" data-tab="series">Series</a>
|
|
|
|
<a id="movies_tab" class="tabs item" data-enabled="{{settings.general.getboolean('use_radarr')}}" data-tab="movies">Movies</a>
|
2018-05-02 10:25:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="ui bottom attached tab segment" data-tab="series">
|
|
|
|
<div class="content">
|
|
|
|
<div id="content_series"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ui bottom attached tab segment" data-tab="movies">
|
|
|
|
<div class="content">
|
|
|
|
<div id="content_movies"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
% include('footer.tpl')
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$('.menu .item')
|
2018-12-09 20:23:51 +00:00
|
|
|
.tab();
|
2018-05-02 10:25:42 +00:00
|
|
|
|
2018-12-09 20:23:51 +00:00
|
|
|
$('#series_tab').on('click', function() {
|
2018-05-02 10:25:42 +00:00
|
|
|
loadURLseries(1);
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
2018-05-02 10:25:42 +00:00
|
|
|
|
2018-12-09 20:23:51 +00:00
|
|
|
$('#movies_tab').on('click', function() {
|
2018-05-02 10:25:42 +00:00
|
|
|
loadURLmovies(1);
|
2018-12-09 20:23:51 +00:00
|
|
|
});
|
2018-05-02 10:25:42 +00:00
|
|
|
|
|
|
|
function loadURLseries(page) {
|
|
|
|
$.ajax({
|
|
|
|
url: "{{base_url}}historyseries?page=" + page,
|
|
|
|
beforeSend: function() { $('#loader').addClass('active'); },
|
|
|
|
complete: function() { $('#loader').removeClass('active'); },
|
|
|
|
cache: false
|
|
|
|
}).done(function(data) {
|
|
|
|
$("#content_series").html(data);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function loadURLmovies(page) {
|
|
|
|
$.ajax({
|
|
|
|
url: "{{base_url}}historymovies?page=" + page,
|
|
|
|
beforeSend: function() { $('#loader').addClass('active'); },
|
|
|
|
complete: function() { $('#loader').removeClass('active'); },
|
|
|
|
cache: false
|
|
|
|
}).done(function(data) {
|
|
|
|
$("#content_movies").html(data);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-12-09 20:23:51 +00:00
|
|
|
$('a:not(.tabs), button:not(.cancel, #download_log)').on('click', function(){
|
2018-05-02 10:25:42 +00:00
|
|
|
$('#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
|
|
|
if ($('#series_tab').data("enabled") === "True") {
|
2018-05-27 03:01:57 +00:00
|
|
|
$("#series_tab").removeClass('disabled');
|
|
|
|
} else {
|
|
|
|
$("#series_tab").addClass('disabled');
|
|
|
|
}
|
|
|
|
|
2018-12-09 20:23:51 +00:00
|
|
|
if ($('#movies_tab').data("enabled") === "True") {
|
2018-05-27 03:01:57 +00:00
|
|
|
$("#movies_tab").removeClass('disabled');
|
|
|
|
} else {
|
|
|
|
$("#movies_tab").addClass('disabled');
|
|
|
|
}
|
2018-12-09 20:23:51 +00:00
|
|
|
if ($('#series_tab').data("enabled") === "True") {
|
2018-05-27 03:01:57 +00:00
|
|
|
$( "#series_tab" ).trigger( "click" );
|
|
|
|
}
|
2018-12-09 20:23:51 +00:00
|
|
|
if ($('#series_tab').data("enabled") === "False" && $('#movies_tab').data("enabled") === "True") {
|
2018-05-27 03:01:57 +00:00
|
|
|
$( "#movies_tab" ).trigger( "click" );
|
|
|
|
}
|
2017-09-16 00:49:46 +00:00
|
|
|
</script>
|