@ -7,7 +7,7 @@
}
}
<style>
<style>
.progressbar {
.progressbar {
position:relative;
position: relative;
width: 125px;
width: 125px;
height: 20px;
height: 20px;
background-color: transparent;
background-color: transparent;
@ -27,33 +27,29 @@
border: 1px solid #065EFE;
border: 1px solid #065EFE;
}
}
.ui-progressbar-value .progressbar-text {
.ui-progressbar-value .progressbar-text {
position: relative;
position: relative;
font-weight: normal;
font-weight: normal;
color: white;
color: white;
}
}
/* Set the row height so it won't resize when the progress bar is created */
/* Set the row height so it won't resize when the progress bar is created */
.seriesTable tr
.seriesTable tr {
{
height: 28px;
height: 28px;
}
}
.commandsColumn, .statusColumn
.commandsColumn, .statusColumn {
{
text-align: center;
text-align: center;
white-space: nowrap;
white-space: nowrap;
}
}
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-delete-button
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-delete-button {
{
margin-right: 445px;
margin-right: 445px;
}
}
</style>
</style>
@section ActionMenu{
@section ActionMenu{
<ul class="sub-menu">
<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>@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>
<li>@Html.ActionLink("Series Editor", "Editor", "Series", null, new { Title = "Edit multiple series" })</li>
</ul>
</ul>
@ -115,56 +111,60 @@
"bInfo": false,
"bInfo": false,
"bAutoWidth": false,
"bAutoWidth": false,
"bStateSave": true,
"bStateSave": true,
"iCookieDuration": 60 * 60 *24 * 365, //1 year
"iCookieDuration": 60 * 60 * 24 * 365, //1 year
"aoColumns": [
"aoColumns": [
{ sWidth: '70px',
{
"sClass": "statusColumn",
sWidth: '70px',
"mDataProp": function (source, type, val) {
"sClass": "statusColumn",
// 'display' and 'filter' use our fancy naming
"mDataProp": function (source, type, val) {
if (type === 'display' || type === 'filter') {
// 'display' and 'filter' use our fancy naming
var monitored = source["Monitored"];
if (type === 'display' || type === 'filter') {
var status = source["Status"];
var monitored = source["Monitored"];
var status = source["Status"];
if (!monitored) {
return pauseImage;
if (!monitored) {
}
return pauseImage;
}
else {
if (status === "Ended"){
else {
return stopImage;
if (status === "Ended") {
}
return stopImage;
}
else {
return playImage;
else {
}
return playImage;
}
}
// 'sort' and 'type' both just use the raw data
return source["Status"];
}
}
}
}
// 'sort' and 'type' both just use the raw data
return source["Status"];
}
}, //Status
}, //Status
{ sWidth: 'auto', "mDataProp": function (source, type, val) {
{
// 'display' and 'filter' use our fancy naming
sWidth: 'auto', "mDataProp": function (source, type, val) {
if (type === 'display' || type === 'filter') {
// 'display' and 'filter' use our fancy naming
return "<a href='/series/details/" + source["SeriesId"] + "'>" + source["Title"] + "</a>";
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"];
// 'sort' and 'type' both just use the raw data
}
return source["TitleSorter"];
}
}, //Title
}, //Title
{ sWidth: '100px', "mDataProp": "SeasonsCount" }, //Seasons
{ sWidth: '100px', "mDataProp": "SeasonsCount" }, //Seasons
{ sWidth: '100px', "mDataProp": "QualityProfileName", sClass: "qualityColumn" }, //Quality
{ sWidth: '100px', "mDataProp": "QualityProfileName", sClass: "qualityColumn" }, //Quality
{ sWidth: '120px', "mDataProp": "Network" }, //Network
{ sWidth: '120px', "mDataProp": "Network" }, //Network
{ sWidth: '120px', "mDataProp": function (source, type, val) {
{
// 'display' and 'filter' use our fancy naming
sWidth: '120px', "mDataProp": function (source, type, val) {
if (type === 'display' || type === 'filter') {
// 'display' and 'filter' use our fancy naming
return source["NextAiring"];
if (type === 'display' || type === 'filter') {
}
return source["NextAiring"];
// 'sort' and 'type' both just use the raw data
}
return source["NextAiringSorter"];
// 'sort' and 'type' both just use the raw data
}
return source["NextAiringSorter"];
}
}, //Next Airing
}, //Next Airing
{ sWidth: '140px', "mDataProp": "Episodes", "bSortable": false, "fnRender": function (row) {
{
sWidth: '140px', "mDataProp": "Episodes", "bSortable": false, "fnRender": function (row) {
var progress = 100;
var progress = 100;
if (row.aData["EpisodeCount"] > 0)
if (row.aData["EpisodeCount"] > 0)
progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
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>";
"<i class='icon-remove deleteButton gridAction' title = 'Delete Series' data-series-id='" + row.aData["SeriesId"] + "' data-series-title='" + row.aData["Title"] + "'></i>";
}
}
}, //Commands
}, //Commands
{ sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) {
{
var result = "<b>Airs Day of Week: </b>" + row.aData["AirsDayOfWeek"] + "<br/>" +
sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) {
"<b>Air Time: </b>" + row.aData["AirTime"] + "<br/>" +
var result = "<b>Airs Day of Week: </b>" + row.aData["AirsDayOfWeek"] + "<br/>" +
"<b>Overview: </b>" + row.aData["Overview"] + "<br/>";
"<b>Air Time: </b>" + row.aData["AirTime"] + "<br/>" +
"<b>Overview: </b>" + row.aData["Overview"] + "<br/>";
return result;
return result;
}
}
} //Details
} //Details
],
],
"aaSorting": [[1, 'asc']],
"aaSorting": [[1, 'asc']],
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
"fnCreatedRow": function ( nRow, aData, iDataIndex) {
$(nRow).attr('data-series-id', aData["SeriesId"].toString());
$(nRow).attr('data-series-id', aData["SeriesId"].toString());
},
},
"oLanguage": {
"oLanguage": {
@ -212,7 +213,7 @@
if ($(row).hasClass('details-opened')) {
if ($(row).hasClass('details-opened')) {
var nextRow = $(row).next('tr');
var nextRow = $(row).next('tr');
if($(nextRow).children('.Details').length > 0) {
if ($(nextRow).children('.Details').length > 0) {
$(nextRow).hide();
$(nextRow).hide();
}
}
}
}