From 2e32d6efd4c9056928cf390d57b317099d3bda9d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 27 Apr 2011 23:04:57 -0700 Subject: [PATCH] Moved indexer images to a subfolder. --- .../Content/Images/{ => Indexers}/Newzbin.png | Bin .../Content/Images/{ => Indexers}/NzbMatrix.png | Bin .../Content/Images/{ => Indexers}/NzbsOrg.png | Bin .../Content/Images/{ => Indexers}/NzbsRus.png | Bin .../Content/Images/{ => Indexers}/Unknown.png | Bin NzbDrone.Web/Controllers/HistoryController.cs | 5 +++-- NzbDrone.Web/NzbDrone.Web.csproj | 7 +++++++ NzbDrone.Web/Views/History/Index.cshtml | 2 +- NzbDrone.Web/Views/Settings/Indexers.cshtml | 8 ++++---- 9 files changed, 15 insertions(+), 7 deletions(-) rename NzbDrone.Web/Content/Images/{ => Indexers}/Newzbin.png (100%) rename NzbDrone.Web/Content/Images/{ => Indexers}/NzbMatrix.png (100%) rename NzbDrone.Web/Content/Images/{ => Indexers}/NzbsOrg.png (100%) rename NzbDrone.Web/Content/Images/{ => Indexers}/NzbsRus.png (100%) rename NzbDrone.Web/Content/Images/{ => Indexers}/Unknown.png (100%) diff --git a/NzbDrone.Web/Content/Images/Newzbin.png b/NzbDrone.Web/Content/Images/Indexers/Newzbin.png similarity index 100% rename from NzbDrone.Web/Content/Images/Newzbin.png rename to NzbDrone.Web/Content/Images/Indexers/Newzbin.png diff --git a/NzbDrone.Web/Content/Images/NzbMatrix.png b/NzbDrone.Web/Content/Images/Indexers/NzbMatrix.png similarity index 100% rename from NzbDrone.Web/Content/Images/NzbMatrix.png rename to NzbDrone.Web/Content/Images/Indexers/NzbMatrix.png diff --git a/NzbDrone.Web/Content/Images/NzbsOrg.png b/NzbDrone.Web/Content/Images/Indexers/NzbsOrg.png similarity index 100% rename from NzbDrone.Web/Content/Images/NzbsOrg.png rename to NzbDrone.Web/Content/Images/Indexers/NzbsOrg.png diff --git a/NzbDrone.Web/Content/Images/NzbsRus.png b/NzbDrone.Web/Content/Images/Indexers/NzbsRus.png similarity index 100% rename from NzbDrone.Web/Content/Images/NzbsRus.png rename to NzbDrone.Web/Content/Images/Indexers/NzbsRus.png diff --git a/NzbDrone.Web/Content/Images/Unknown.png b/NzbDrone.Web/Content/Images/Indexers/Unknown.png similarity index 100% rename from NzbDrone.Web/Content/Images/Unknown.png rename to NzbDrone.Web/Content/Images/Indexers/Unknown.png diff --git a/NzbDrone.Web/Controllers/HistoryController.cs b/NzbDrone.Web/Controllers/HistoryController.cs index 0148e3837..e74e8a75d 100644 --- a/NzbDrone.Web/Controllers/HistoryController.cs +++ b/NzbDrone.Web/Controllers/HistoryController.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; using System.Web.Mvc; using NzbDrone.Core.Model; using NzbDrone.Core.Providers; @@ -55,7 +56,7 @@ namespace NzbDrone.Web.Controllers Quality = h.Quality.ToString(), IsProper = h.IsProper, Date = h.Date, - Indexer = h.Indexer.ToString() + Indexer = String.IsNullOrEmpty(h.Indexer.ToString()) ? "Unknown" : h.Indexer.ToString() }); return View(new GridModel(history)); diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 3cb296bbf..18e901683 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -559,10 +559,17 @@ + + + + + + + diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index 91a4a17b8..2e588ddea 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -16,7 +16,7 @@ History .Columns(columns => { columns.Bound(c => c.Indexer) - .ClientTemplate("
<#= Indexer #>
") + .ClientTemplate("
<#= Indexer #>
") .Title("") .Width(20); columns.Bound(c => c.SeriesTitle).Title("Series Name"); diff --git a/NzbDrone.Web/Views/Settings/Indexers.cshtml b/NzbDrone.Web/Views/Settings/Indexers.cshtml index 7cb1e38e9..29987e691 100644 --- a/NzbDrone.Web/Views/Settings/Indexers.cshtml +++ b/NzbDrone.Web/Views/Settings/Indexers.cshtml @@ -67,7 +67,7 @@ { item.Add() .Text("NZBs.org") - .ImageUrl("~/Content/Images/NzbsOrg.png") + .ImageUrl("~/Content/Images/Indexers/NzbsOrg.png") .Content( "
" + @@ -100,7 +100,7 @@ ); item.Add() .Text("NZB Matrix") - .ImageUrl("~/Content/Images/NzbMatrix.png") + .ImageUrl("~/Content/Images/Indexers/NzbMatrix.png") .Content( "
" + @@ -133,7 +133,7 @@ ); item.Add() .Text("NZBsRus") - .ImageUrl("~/Content/Images/NzbsRus.png") + .ImageUrl("~/Content/Images/Indexers/NzbsRus.png") .Content( "
" + @@ -166,7 +166,7 @@ ); item.Add() .Text("Newzbin") - .ImageUrl("~/Content/Images/Newzbin.png") + .ImageUrl("~/Content/Images/Indexers/Newzbin.png") .Content( "
" +