1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 01:37:07 +00:00

Fixed Details link is Series/Index.

Delete extraneous Series partial view.
This commit is contained in:
Mark McDowall 2012-02-17 16:24:49 -08:00
parent 04afa21b98
commit 2064700eb1
3 changed files with 1 additions and 50 deletions

View file

@ -479,9 +479,6 @@
<ItemGroup>
<Content Include="Views\Series\Details.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Series\Series.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Series\SeriesEditor.cshtml" />
</ItemGroup>

View file

@ -158,7 +158,7 @@
{ sWidth: 'auto', "mDataProp": function (source, type, val) {
// 'display' and 'filter' use our fancy naming
if (type === 'display' || type === 'filter') {
return source["Title"];
return "<a href='/Series/Details?seriesId=" + source["SeriesId"] + "'>" + source["Title"] + "</a>";
}
// 'sort' and 'type' both just use the raw data
return source["TitleSorter"];

View file

@ -1,46 +0,0 @@
@using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.SeriesModel
<tr class="@Model.SeriesId data-row @(ViewData["AltRow"] == null || !(bool)ViewData["AltRow"] ? "" : " alt-row")">
<td class="statusColumn">
@{if (!Model.Monitored)
{
<img src="../../Content/Images/pause.png" width="24" height="24" alt="Paused" title="Not monitored" />
}
else
{
if (Model.Status == "Ended")
{
<img src="../../Content/Images/stop.png" width="24" height="24" alt="Ended" title="Ended" />
}
else
{
<img src="../../Content/Images/play.png" width="24" height="24" alt="Active" title="Continuing" />
}
}
}
</td>
<td>@Html.ActionLink(Model.Title, "Details", "Series", new { seriesId = Model.SeriesId }, null)</td>
<td>@Model.SeasonsCount</td>
<td>@Model.QualityProfileName</td>
<td>@Model.NextAiring</td>
<td>
@{ double progress = (double)Model.EpisodeFileCount / (double)Model.EpisodeCount * 100; }
<div class='progressBar' rel='@progress.ToString("0")'>
<span class='progressBarText'>@Model.EpisodeFileCount / @Model.EpisodeCount</span>
</div>
</td>
@*Commands Column*@
<td class="commandsColumn">
<img src="../../Content/Images/settings.png" class="editButton" value="@Model.SeriesId" rel="@Model.Title" />
<img src="../../Content/Images/close.png" class="deleteButton" value="@Model.SeriesId" rel="@Model.Title" />
</td>
</tr>
<tr class="detail-row details_@(Model.SeriesId) @(ViewData["AltRow"] == null || !(bool)ViewData["AltRow"] ? "" : " alt-row")">
<td colspan="7">
<b>Airs Day of Week:</b> @Model.AirsDayOfWeek <br/>
<b>Overview:</b> @Model.Overview
</td>
</tr>