sonarr-repo-only/NzbDrone.Web/Views/Series/Details.cshtml

130 lines
3.6 KiB
Plaintext
Raw Normal View History

@model SeriesDetailsModel
2012-02-07 06:47:02 +00:00
@using NzbDrone.Web.Helpers
@using NzbDrone.Web.Models
2012-02-07 06:47:02 +00:00
@section HeaderContent
{
2012-02-22 21:41:47 +00:00
@Html.IncludeCss("Settings.css")
@Html.IncludeCss("Grid.css")
2012-02-22 21:41:47 +00:00
<style>
.seasonToggleTopGroup
{
overflow: hidden;
}
2011-12-03 23:44:48 +00:00
2012-02-22 21:41:47 +00:00
.seasonToggleTop
{
background-color: #F1EDED;
background-position: 5px center;
background-repeat: no-repeat;
display: inline-block;
font-size: 15px;
margin: 2px;
padding: 2px 5px;
width: 100px;
}
.seasonToggleLabel
{
margin-left: 5px;
color: black;
text-decoration: none;
}
2012-02-05 03:41:21 +00:00
2012-02-22 21:41:47 +00:00
.seasonToggleTop .ignoredEpisodesMaster
{
padding-left: 0px;
padding-right: 0px;
border-style: none;
}
2011-12-03 23:44:48 +00:00
2012-02-22 21:41:47 +00:00
#banner-container
{
width: 758px;
height: 140px;
padding: 0px;
margin-top: 10px;
margin-bottom: 15px;
margin-left: auto;
margin-right: auto;
}
2012-02-22 21:41:47 +00:00
.seasonSection
{
margin-top: 50px;
}
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-delete-button
{
margin-right: 445px;
}
</style>
}
@{ ViewBag.Title = Model.Title; }
@section ActionMenu
{
2011-12-03 23:44:48 +00:00
<ul class="sub-menu">
2012-02-22 21:41:47 +00:00
<li><a class="editButton" value="@Model.SeriesId" rel="@Model.Title">Edit</a></li>
2012-02-25 16:35:27 +00:00
<li>@Ajax.ActionLink("Force Refresh", "ForceRefresh", "Command", new { seriesId = Model.SeriesId }, null)</li>
<li>@Ajax.ActionLink("Search for missing episodes", "BacklogSeries", "Episode", new { seriesId = Model.SeriesId }, null)</li>
<li>@Ajax.ActionLink("Rename Episode Files", "RenameEpisodes", "Episode", new { seriesId = Model.SeriesId }, null)</li>
</ul>
}
2011-12-01 05:25:01 +00:00
@if (Model.HasBanner)
{
var bannerUrl = "../../MediaCover/Banners/" + Model.SeriesId + ".jpg";
<div id="banner-container">
<img src="@bannerUrl" alt="Banner"/>
</div>
}
2011-12-03 23:44:48 +00:00
<div class="seasonToggleTopGroup">
@foreach (var season in Model.Seasons.OrderBy(s => s.SeasonNumber))
2011-04-24 05:48:12 +00:00
{
var ignoreSeason = "ignoreSeason_" + season.SeasonNumber;
2011-12-03 23:44:48 +00:00
<div class="seasonToggleTop">
<img src='../../Content/Images/@(season.Ignored ? "ignored" : "notIgnored").png'
class='ignoredEpisodesMaster ignoreEpisode @ignoreSeason@(season.Ignored ? " ignored" : " ") gridImage'
title='Click to toggle season ignore status' />
<a href="@string.Format("#SeasonSection_{0}", season.SeasonNumber)" class="seasonToggleLabel">@(season.SeasonNumber == 0 ? "Specials" : "Season " + season.SeasonNumber)</a>
</div>
2011-04-24 05:48:12 +00:00
}
2011-12-03 23:44:48 +00:00
</div>
@foreach (var s in Model.Seasons.OrderByDescending(a => a.SeasonNumber))
2011-12-03 23:44:48 +00:00
{
<div class="seasonSection" id="@string.Format("SeasonSection_{0}", s.SeasonNumber)">
@{
2012-02-05 03:41:21 +00:00
var season = s;
Html.RenderPartial("Season", season);
}
</div>
2011-12-03 23:44:48 +00:00
}
2012-02-22 21:41:47 +00:00
<div style="visibility: hidden">
<div id="seriesEditor" title="Edit Series">
</div>
</div>
@section Scripts{
@Html.IncludeScript("NzbDrone/seriesDetails.js")
2012-02-22 21:41:47 +00:00
@Html.IncludeScript("NzbDrone/series.js")
<script type="text/javascript">
seriesId = @Model.SeriesId;
2012-02-22 21:41:47 +00:00
//Used when we delete this series
function afterDelete(seriesId) {
window.location = "/";
}
//After we save do this...
function afterSave() {
//Do nothing
}
</script>
}