From 8135a97d62c27a3e792a5f6cf19e685960639649 Mon Sep 17 00:00:00 2001 From: Anthirian Date: Tue, 24 Jun 2014 22:54:51 +0200 Subject: [PATCH 1/6] Fixed broken layout for anime black and whitelist --- gui/slick/css/default.css | 48 +++++++++++++++++ gui/slick/interfaces/default/editShow.tmpl | 44 +-------------- .../default/inc_blackwhitelist.tmpl | 53 +++++++++++++++++++ 3 files changed, 102 insertions(+), 43 deletions(-) create mode 100644 gui/slick/interfaces/default/inc_blackwhitelist.tmpl diff --git a/gui/slick/css/default.css b/gui/slick/css/default.css index 4b8a5b66..360c672e 100644 --- a/gui/slick/css/default.css +++ b/gui/slick/css/default.css @@ -888,6 +888,54 @@ td.tvShow a { -o-opacity: 1 !important; opacity: 1 !important; } + +/* Anime section for editShow */ +#Anime { + clear: both; + display: block ; + overflow-x: hidden; + overflow-y: hidden; + padding-bottom: 10px; + padding-left: 20px; + padding-right: 0px; + padding-top: 10px; + font-size: 14px; +} + +#Anime div.component-group-desc { + float: left; + width: 165px; +} +#Anime div.component-group-desc p { + color: #666666; + margin-bottom: 0.4em; + margin-left: 0; + margin-right: 0; + margin-top: 0.4em; + width: 95%; +} + +div.blackwhitelist{ + float: left; + text-align: center; +} +div.blackwhitelist input { + margin: 5px 0px; +} +div.blackwhitelist.pool select { + min-width: 230px; +} +div.blackwhitelist.white select, div.blackwhitelist.black select { + min-width: 150px; +} +div.blackwhitelist span { + display: block; + text-align: center; +} +div.blackwhitelist.anidb, div.blackwhitelist.manual { + margin: 7px 0px; +} + /* for manage_massEdit */ .optionWrapper { width: 450px; diff --git a/gui/slick/interfaces/default/editShow.tmpl b/gui/slick/interfaces/default/editShow.tmpl index 95cebd0c..63c8eb1f 100644 --- a/gui/slick/interfaces/default/editShow.tmpl +++ b/gui/slick/interfaces/default/editShow.tmpl @@ -146,49 +146,7 @@ Separate words with a comma, e.g. "word1,word2,word3"

#if $show.is_anime -

-Release Groups: -

- - -
-
- White: - -
- -
- -
- Pool (Name|Rating|Subed Ep): - -
- - - -
- -
- Black: - -
- -
-
+#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_blackwhitelist.tmpl") #end if diff --git a/gui/slick/interfaces/default/inc_blackwhitelist.tmpl b/gui/slick/interfaces/default/inc_blackwhitelist.tmpl new file mode 100644 index 00000000..83129d0a --- /dev/null +++ b/gui/slick/interfaces/default/inc_blackwhitelist.tmpl @@ -0,0 +1,53 @@ +Fansub Groups: +
+
+

Select your preferred fansub groups from the Available Groups and add them to the Whitelist. Add groups to the Blacklist to ignore them.

+

The Whitelist is checked before the Blacklist.

+

Groups are shown as Name | Rating | Number of subbed episodes.

+

You may also add any fansub group not listed to either list manually.

+
+
+
+
+

Whitelist

+ +
+ +
+
+

Available Groups

+ +
+ + +
+
+

Blacklist

+ +
+ +
+
+
+
+ + + +
+
+
+
\ No newline at end of file From 4252daf098876ce5f4b27bb73eca519562f4c3cc Mon Sep 17 00:00:00 2001 From: Mark Rawson Date: Sun, 29 Jun 2014 16:49:47 +0100 Subject: [PATCH 2/6] Fix next backlog date in API / altered display of next backlog date in UI --- gui/slick/interfaces/default/inc_bottom.tmpl | 2 +- sickbeard/searchBacklog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/slick/interfaces/default/inc_bottom.tmpl b/gui/slick/interfaces/default/inc_bottom.tmpl index 25fccc23..51b31f3b 100644 --- a/gui/slick/interfaces/default/inc_bottom.tmpl +++ b/gui/slick/interfaces/default/inc_bottom.tmpl @@ -15,7 +15,7 @@ #set $numEpisodes = $myDB.select("SELECT COUNT(*) FROM tv_episodes WHERE season != 0 and episode != 0 AND (airdate != 1 OR status IN ("+",".join([str(x) for x in ($Quality.DOWNLOADED + $Quality.SNATCHED + $Quality.SNATCHED_PROPER) + [$ARCHIVED]])+")) AND airdate <= "+$today+" AND status != "+str($IGNORED)+"")[0][0] $numShows shows ($numGoodShows active) | $numDLEpisodes/$numEpisodes episodes downloaded | Search: <%=str(sickbeard.dailySearchScheduler.timeLeft()).split('.')[0]%> | -Backlog: $sbdatetime.sbdatetime.sbfdate($sickbeard.backlogSearchScheduler.nextRun()) +Backlog: <%=str(sickbeard.backlogSearchScheduler.timeLeft()).split('.')[0]%>