From 5665f6498839cc3b624e723de213ec02aad98dc9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 7 Aug 2012 16:46:23 -0700 Subject: [PATCH] Release group shown on history details, take 2 --- NzbDrone.Core/Model/HistoryQueryModel.cs | 1 + NzbDrone.Web/Controllers/HistoryController.cs | 3 ++- NzbDrone.Web/Views/History/Index.cshtml | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Model/HistoryQueryModel.cs b/NzbDrone.Core/Model/HistoryQueryModel.cs index 00a018c2b..198178f60 100644 --- a/NzbDrone.Core/Model/HistoryQueryModel.cs +++ b/NzbDrone.Core/Model/HistoryQueryModel.cs @@ -16,6 +16,7 @@ namespace NzbDrone.Core.Model public bool IsProper { get; set; } public string Indexer { get; set; } public string NzbInfoUrl { get; set; } + public string ReleaseGroup { get; set; } public string EpisodeTitle { get; set; } public int SeasonNumber { get; set; } diff --git a/NzbDrone.Web/Controllers/HistoryController.cs b/NzbDrone.Web/Controllers/HistoryController.cs index be528a0ef..e5d050f6e 100644 --- a/NzbDrone.Web/Controllers/HistoryController.cs +++ b/NzbDrone.Web/Controllers/HistoryController.cs @@ -48,7 +48,8 @@ namespace NzbDrone.Web.Controllers DateSorter = h.Date.ToString("MM/dd/yyyy h:mm:ss tt"), Indexer = h.Indexer, EpisodeId = h.EpisodeId, - NzbInfoUrl = h.NzbInfoUrl + NzbInfoUrl = h.NzbInfoUrl, + ReleaseGroup = h.ReleaseGroup }); return Json(new diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index f7bad9ef1..2890e31b0 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -112,6 +112,9 @@ "Proper: " + row.aData["IsProper"] + "
" + "Indexer: " + row.aData["Indexer"].replace('_', ' - '); + if (row.aData["ReleaseGroup"] != null && row.aData["ReleaseGroup"] != "") + result += "
Release Group: " + row.aData["ReleaseGroup"]; + if (row.aData["NzbInfoUrl"] != null && row.aData["NzbInfoUrl"] != "") result += "
Nzb Details: Details";