From 04edef5f3fecd35c21537d0002093d112be5c0e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gae=CC=88tan=20Muller?= <m.gaetan89@gmail.com>
Date: Wed, 30 Dec 2015 21:01:50 +0100
Subject: [PATCH] Tweak Backlog overview design

---
 gui/slick/views/manage_backlogOverview.mako | 25 ++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/gui/slick/views/manage_backlogOverview.mako b/gui/slick/views/manage_backlogOverview.mako
index 548458044..9b9760127 100644
--- a/gui/slick/views/manage_backlogOverview.mako
+++ b/gui/slick/views/manage_backlogOverview.mako
@@ -32,13 +32,21 @@
 %>
 
 <div class="h2footer pull-right">
+    % if totalWanted > 0:
     <span class="listing-key wanted">Wanted: <b>${totalWanted}</b></span>
+    % endif
+
+    % if totalQualSnatched > 0:
     <span class="listing-key snatched">Snatched (Low Quality): <b>${totalQualSnatched}</b></span>
+    % endif
+
+    % if totalQual > 0:
     <span class="listing-key qual">Low Quality: <b>${totalQual}</b></span>
+    % endif
 </div><br>
 
 <div class="float-left">
-Jump to Show
+Jump to Show:
     <select id="pickShow" class="form-control form-control-inline input-sm">
     % for curShow in backLogShows:
         <option value="${curShow.indexerid}">${curShow.name}</option>
@@ -52,14 +60,21 @@ Jump to Show
         <% continue %>
     % endif
     <tr class="seasonheader" id="show-${curShow.indexerid}">
-        <td colspan="3" class="align-left">
-            <br><h2><a href="${srRoot}/home/displayShow?show=${curShow.indexerid}">${curShow.name}</a></h2>
-            <div class="pull-right">
+        <td colspan="3" class="align-left" style="position: relative;">
+            <h2 style="display: inline-block;"><a href="${srRoot}/home/displayShow?show=${curShow.indexerid}">${curShow.name}</a></h2>
+            <div style="position: absolute; bottom: 10px; right: 0;">
+                % if showCounts[curShow.indexerid][Overview.WANTED] > 0:
                 <span class="listing-key wanted">Wanted: <b>${showCounts[curShow.indexerid][Overview.WANTED]}</b></span>
-                % if showQualSnatched(curShow):
+                % endif
+
+                % if showQualSnatched(curShow) and showCounts[curShow.indexerid][Overview.SNATCHED] > 0:
                     <span class="listing-key snatched">Snatched (Low Quality): <b>${showCounts[curShow.indexerid][Overview.SNATCHED]}</b></span>
                 % endif
+
+                % if showCounts[curShow.indexerid][Overview.QUAL] > 0:
                 <span class="listing-key qual">Low Quality: <b>${showCounts[curShow.indexerid][Overview.QUAL]}</b></span>
+                % endif
+
                 <a class="btn btn-inline forceBacklog" href="${srRoot}/manage/backlogShow?indexer_id=${curShow.indexerid}"><i class="icon-play-circle icon-white"></i> Force Backlog</a>
             </div>
         </td>
-- 
GitLab