mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
moved rootdir to eloquera
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
{
|
||||
@Html.IncludeCss("Settings.css")
|
||||
}
|
||||
<style>
|
||||
<style>
|
||||
.progressbar {
|
||||
position:relative;
|
||||
width: 125px;
|
||||
position: relative;
|
||||
width: 125px;
|
||||
height: 20px;
|
||||
background-color: transparent;
|
||||
border: 1px solid #065EFE;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
|
||||
.progressbar-text {
|
||||
position: absolute;
|
||||
display: block;
|
||||
@@ -27,33 +27,29 @@
|
||||
border: 1px solid #065EFE;
|
||||
}
|
||||
|
||||
.ui-progressbar-value .progressbar-text {
|
||||
position: relative;
|
||||
font-weight: normal;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.ui-progressbar-value .progressbar-text {
|
||||
position: relative;
|
||||
font-weight: normal;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Set the row height so it won't resize when the progress bar is created */
|
||||
.seriesTable tr
|
||||
{
|
||||
.seriesTable tr {
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.commandsColumn, .statusColumn
|
||||
{
|
||||
|
||||
.commandsColumn, .statusColumn {
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-delete-button
|
||||
{
|
||||
|
||||
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-delete-button {
|
||||
margin-right: 445px;
|
||||
}
|
||||
|
||||
</style>
|
||||
@section ActionMenu{
|
||||
<ul class="sub-menu">
|
||||
<li>@Html.ActionLink("Add Series", "Index", "AddSeries", null, new { Title = "Add a new or existing series" })</li>
|
||||
<li><a href="/v2#series/add">Add Series</a></li>
|
||||
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null, new { Title = "Check for newly released downloads" })</li>
|
||||
<li>@Html.ActionLink("Series Editor", "Editor", "Series", null, new { Title = "Edit multiple series" })</li>
|
||||
</ul>
|
||||
@@ -61,7 +57,7 @@
|
||||
|
||||
<table id="seriesGrid" class="dataTablesGrid hidden-grid">
|
||||
<thead>
|
||||
|
||||
|
||||
<tr>
|
||||
<th style="width: 10px">Status</th>
|
||||
<th style="width: auto">Title</th>
|
||||
@@ -70,7 +66,7 @@
|
||||
<th style="width: 100px">Network</th>
|
||||
<th style="width: 140px">Next Airing</th>
|
||||
<th style="width: 100px">Episodes</th>
|
||||
|
||||
|
||||
@*Commands Column*@
|
||||
<th style="width: 80px"></th>
|
||||
</tr>
|
||||
@@ -96,7 +92,7 @@
|
||||
@Html.IncludeScript("NzbDrone/series.js")
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
var pauseImage = '<i class="icon-pause grid-icon" title="Not Monitored"></i>';
|
||||
var stopImage = '<i class="icon-stop grid-icon" title="Ended"></i>';
|
||||
var playImage = '<i class="icon-play grid-icon" title="Continuing"></i>';
|
||||
@@ -115,56 +111,60 @@
|
||||
"bInfo": false,
|
||||
"bAutoWidth": false,
|
||||
"bStateSave": true,
|
||||
"iCookieDuration": 60 * 60 *24 * 365, //1 year
|
||||
"iCookieDuration": 60 * 60 * 24 * 365, //1 year
|
||||
"aoColumns": [
|
||||
{ sWidth: '70px',
|
||||
"sClass": "statusColumn",
|
||||
"mDataProp": function (source, type, val) {
|
||||
// 'display' and 'filter' use our fancy naming
|
||||
if (type === 'display' || type === 'filter') {
|
||||
var monitored = source["Monitored"];
|
||||
var status = source["Status"];
|
||||
|
||||
if (!monitored) {
|
||||
return pauseImage;
|
||||
}
|
||||
|
||||
else {
|
||||
if (status === "Ended"){
|
||||
return stopImage;
|
||||
}
|
||||
|
||||
else {
|
||||
return playImage;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 'sort' and 'type' both just use the raw data
|
||||
return source["Status"];
|
||||
{
|
||||
sWidth: '70px',
|
||||
"sClass": "statusColumn",
|
||||
"mDataProp": function (source, type, val) {
|
||||
// 'display' and 'filter' use our fancy naming
|
||||
if (type === 'display' || type === 'filter') {
|
||||
var monitored = source["Monitored"];
|
||||
var status = source["Status"];
|
||||
|
||||
if (!monitored) {
|
||||
return pauseImage;
|
||||
}
|
||||
|
||||
else {
|
||||
if (status === "Ended") {
|
||||
return stopImage;
|
||||
}
|
||||
|
||||
else {
|
||||
return playImage;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 'sort' and 'type' both just use the raw data
|
||||
return source["Status"];
|
||||
}
|
||||
}, //Status
|
||||
{ sWidth: 'auto', "mDataProp": function (source, type, val) {
|
||||
// 'display' and 'filter' use our fancy naming
|
||||
if (type === 'display' || type === 'filter') {
|
||||
return "<a href='/series/details/" + source["SeriesId"] + "'>" + source["Title"] + "</a>";
|
||||
}
|
||||
// 'sort' and 'type' both just use the raw data
|
||||
return source["TitleSorter"];
|
||||
}
|
||||
{
|
||||
sWidth: 'auto', "mDataProp": function (source, type, val) {
|
||||
// 'display' and 'filter' use our fancy naming
|
||||
if (type === 'display' || type === 'filter') {
|
||||
return "<a href='/series/details/" + source["SeriesId"] + "'>" + source["Title"] + "</a>";
|
||||
}
|
||||
// 'sort' and 'type' both just use the raw data
|
||||
return source["TitleSorter"];
|
||||
}
|
||||
}, //Title
|
||||
{ sWidth: '100px', "mDataProp": "SeasonsCount" }, //Seasons
|
||||
{ sWidth: '100px', "mDataProp": "QualityProfileName", sClass: "qualityColumn" }, //Quality
|
||||
{ sWidth: '120px', "mDataProp": "Network" }, //Network
|
||||
{ sWidth: '120px', "mDataProp": function (source, type, val) {
|
||||
// 'display' and 'filter' use our fancy naming
|
||||
if (type === 'display' || type === 'filter') {
|
||||
return source["NextAiring"];
|
||||
}
|
||||
// 'sort' and 'type' both just use the raw data
|
||||
return source["NextAiringSorter"];
|
||||
}
|
||||
{
|
||||
sWidth: '120px', "mDataProp": function (source, type, val) {
|
||||
// 'display' and 'filter' use our fancy naming
|
||||
if (type === 'display' || type === 'filter') {
|
||||
return source["NextAiring"];
|
||||
}
|
||||
// 'sort' and 'type' both just use the raw data
|
||||
return source["NextAiringSorter"];
|
||||
}
|
||||
}, //Next Airing
|
||||
{ sWidth: '140px', "mDataProp": "Episodes", "bSortable": false, "fnRender": function (row) {
|
||||
{
|
||||
sWidth: '140px', "mDataProp": "Episodes", "bSortable": false, "fnRender": function (row) {
|
||||
var progress = 100;
|
||||
if (row.aData["EpisodeCount"] > 0)
|
||||
progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
|
||||
@@ -188,16 +188,17 @@
|
||||
"<i class='icon-remove deleteButton gridAction' title = 'Delete Series' data-series-id='" + row.aData["SeriesId"] + "' data-series-title='" + row.aData["Title"] + "'></i>";
|
||||
}
|
||||
}, //Commands
|
||||
{ sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) {
|
||||
var result = "<b>Airs Day of Week: </b>" + row.aData["AirsDayOfWeek"] + "<br/>" +
|
||||
"<b>Air Time: </b>" + row.aData["AirTime"] + "<br/>" +
|
||||
"<b>Overview: </b>" + row.aData["Overview"] + "<br/>";
|
||||
{
|
||||
sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) {
|
||||
var result = "<b>Airs Day of Week: </b>" + row.aData["AirsDayOfWeek"] + "<br/>" +
|
||||
"<b>Air Time: </b>" + row.aData["AirTime"] + "<br/>" +
|
||||
"<b>Overview: </b>" + row.aData["Overview"] + "<br/>";
|
||||
return result;
|
||||
}
|
||||
} //Details
|
||||
],
|
||||
],
|
||||
"aaSorting": [[1, 'asc']],
|
||||
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
$(nRow).attr('data-series-id', aData["SeriesId"].toString());
|
||||
},
|
||||
"oLanguage": {
|
||||
@@ -205,25 +206,25 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//After we delete a series do this...
|
||||
function afterDelete(seriesId) {
|
||||
var row = $('[data-series-id="' + seriesId + '"]');
|
||||
|
||||
|
||||
if ($(row).hasClass('details-opened')) {
|
||||
var nextRow = $(row).next('tr');
|
||||
if($(nextRow).children('.Details').length > 0) {
|
||||
if ($(nextRow).children('.Details').length > 0) {
|
||||
$(nextRow).hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$(row).hide();
|
||||
}
|
||||
|
||||
|
||||
//After we save do this...
|
||||
function afterSave() {
|
||||
updateStatus();
|
||||
|
||||
|
||||
//Update Quality
|
||||
var seriesId = $('#SeriesId').val();
|
||||
var quality = $('#QualityProfileId :selected').text();
|
||||
|
||||
Reference in New Issue
Block a user