From 020ab0bc15ad2e1c90686376edc9eb4e5f00ba84 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sun, 18 Sep 2016 16:29:05 +0100 Subject: [PATCH] Improved how the TV search looks and feels --- PlexRequests.UI/Content/search.js | 3 ++- PlexRequests.UI/Views/Search/Index.cshtml | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/PlexRequests.UI/Content/search.js b/PlexRequests.UI/Content/search.js index 310ba27fe..cab9171e1 100644 --- a/PlexRequests.UI/Content/search.js +++ b/PlexRequests.UI/Content/search.js @@ -467,7 +467,8 @@ $(function () { available: result.available, episodes: result.episodes, tvFullyAvailable: result.tvFullyAvailable, - url: result.plexUrl + url: result.plexUrl, + tvPartialAvailable : result.tvPartialAvailable }; return context; } diff --git a/PlexRequests.UI/Views/Search/Index.cshtml b/PlexRequests.UI/Views/Search/Index.cshtml index 950a7f06d..b8e9f3bfc 100644 --- a/PlexRequests.UI/Views/Search/Index.cshtml +++ b/PlexRequests.UI/Views/Search/Index.cshtml @@ -166,6 +166,18 @@

{{title}} ({{year}})

{{/if_eq}} + {{#if_eq type "tv"}} + {{#if available}} + Available + {{else}} + Not Available + {{/if}} + {{#if requested}} + Requested + {{/if}} +
+
+ {{/if_eq}}

{{overview}}

@@ -176,6 +188,7 @@ {{#if_eq available true}}
+
@UI.Search_ViewInPlex {{else}} {{#if_eq requested true}} @@ -189,7 +202,6 @@ {{#if_eq tvFullyAvailable true}} @*//TODO Not used yet*@
- @UI.Search_ViewInPlex {{else}} + {{#if available}} +
+ @UI.Search_ViewInPlex + {{/if}} {{/if_eq}} {{/if_eq}}