From 2b413c4fdab86906fe738ecd93a7f91c3dcd6af5 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sat, 17 Sep 2016 22:23:09 +0200 Subject: [PATCH] Fix badly formed class setting --- Changelog | 1 + www/themes/Charisma/templates/browse.tpl | 328 ++++++++++--------- www/themes/Gentele/templates/browse.tpl | 396 ++++++++++++----------- www/themes/Omicron/templates/browse.tpl | 328 ++++++++++--------- 4 files changed, 546 insertions(+), 507 deletions(-) diff --git a/Changelog b/Changelog index aefdaccd0..d17c50e62 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2016-09-17 DariusIII + * Fix: Badly formed class setting * Chg: Reformat pager and move it to shared folder 2016-09-16 DariusIII * Chg: Add back reporting of total releases to api response diff --git a/www/themes/Charisma/templates/browse.tpl b/www/themes/Charisma/templates/browse.tpl index 1c408b4a6..705e8ea63 100755 --- a/www/themes/Charisma/templates/browse.tpl +++ b/www/themes/Charisma/templates/browse.tpl @@ -10,180 +10,196 @@ {$site->adbrowse} {if $results|@count > 0}
-
-
-
-
-
-
- {if isset($shows)} -

- Series List | - Manage - My Shows | - Rss - Feed -

- {/if} -
- {if isset($covgroup) && $covgroup != ''}View: - Covers - - | - List -
+
+
+
+
+
+
+
+ {if isset($shows)} +

+ Series List | + Manage + My Shows | + Rss + Feed +

{/if} - With Selected: -
- - - {if isset($sabintegrated) && $sabintegrated !=""} - +
+ {if isset($covgroup) && $covgroup != ''}View: + Covers + + | + List +
{/if} - {if isset($isadmin)} + With Selected: +
+ class="nzb_multi_operations_download btn btn-sm btn-success" + value="Download NZBs"/> - {/if} + class="nzb_multi_operations_cart btn btn-sm btn-info" + value="Send to my Download Basket"/> + {if isset($sabintegrated) && $sabintegrated !=""} + + {/if} + {if isset($isadmin)} + + + {/if} +
+
+ {$pager} +
-
- {$pager} -
-
-
- - - - - - - - - - - - - {foreach $results as $result} - - - - - - - - - {/foreach} - -
Name - - - - - - - CategoryPostedSizeAction
- {$result.searchname|escape:"htmlall"|replace:".":" "}{if !empty($result.failed)} {/if} -
- {$result.grabs} - Grab{if $result.grabs != 1}s{/if} - {if $result.nfoid > 0}NFO{/if} - {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} - {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} - {if $result.videos_id > 0}View TV{/if} - {if isset($result.firstaired) && $result.firstaired != ""} - Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} - {if $result.anidbid > 0}View Anime{/if} - {if !empty($result.failed)} - {$result.grabs} Grab{if $result.grabs != 1}s{/if} / {$result.failed} Failed Download{if $result.failed != 1}s{/if}{/if}
{$result.category_name} - {$result.postdate|timeago}{$result.size|fsize_format:"MB"} - - - - - +
+ + + + + + + + + + + + + {foreach $results as $result} + + + + + + + + + {/foreach} + +
Name + + - {if isset($sabintegrated) && $sabintegrated !=""} + + + + CategoryPostedSizeAction
+ {$result.searchname|escape:"htmlall"|replace:".":" "}{if !empty($result.failed)} + {/if} +
+ {$result.grabs} + Grab{if $result.grabs != 1}s{/if} + {if $result.nfoid > 0}NFO + {/if} + {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} + {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} + {if $result.videos_id > 0}View TV + {/if} + {if isset($result.firstaired) && $result.firstaired != ""} + Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} + {if $result.anidbid > 0}View Anime + {/if} + {if !empty($result.failed)} + + {$result.grabs} Grab{if $result.grabs != 1}s{/if} / + + {$result.failed} Failed Download{if $result.failed != 1}s{/if} + {/if}
{$result.category_name} + {$result.postdate|timeago}{$result.size|fsize_format:"MB"} + + + class="icon_cart text-muted fa fa-shopping-basket" + title="Send to my Download Basket"> + {if isset($sabintegrated) && $sabintegrated !=""} + + + + + {/if} + {if $weHasVortex} + + {/if} +
+
+
+
+
+ {if isset($section) && $section != ''}View: + Covers + | + List +
{/if} - {if $weHasVortex} - - {/if} -
-
-
-
-
- {if isset($section) && $section != ''}View: - Covers - | - List -
- {/if} - With Selected: -
- - - {if isset($sabintegrated) && $sabintegrated !=""} + With Selected: +
- {/if} - {if isset($isadmin)} + class="nzb_multi_operations_download btn btn-sm btn-success" + value="Download NZBs"/> - - {/if} + class="nzb_multi_operations_cart btn btn-sm btn-info" + value="Send to my Download Basket"/> + {if isset($sabintegrated) && $sabintegrated !=""} + + {/if} + {if isset($isadmin)} + + + {/if} +
-
-
- {$pager} +
+ {$pager} +
diff --git a/www/themes/Gentele/templates/browse.tpl b/www/themes/Gentele/templates/browse.tpl index 466852314..86bce3d6d 100755 --- a/www/themes/Gentele/templates/browse.tpl +++ b/www/themes/Gentele/templates/browse.tpl @@ -10,209 +10,215 @@ {$site->adbrowse} {if $results|@count > 0} -
-
-
-
-
-
- {if isset($shows)} -

- Series List | - Manage - My Shows | - Rss - Feed -

- {/if} -
- {if isset($covgroup) && $covgroup != ''}View: - Covers - - | - List -
+
+
+
+
+
+
+
+ {if isset($shows)} +

+ Series List | + Manage + My Shows | + Rss + Feed +

{/if} - With Selected: -
- - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} - {if isset($isadmin)} - - - {/if} -
-
-
-
- {$pager} -
-
-
- - - - - - - - - - - - - - {foreach $results as $result} - - - - - - - - - {/foreach} - -
Name - - - CategoryPostedSizeAction - Bulk Actions ( ) -
- {$result.searchname|escape:"htmlall"|replace:".":" "}{if !empty($result.failed)} - {/if} -
- {$result.grabs} - Grab{if $result.grabs != 1}s{/if} - {if $result.nfoid > 0}NFO{/if} - {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} - {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} - {if $result.videos_id > 0}View TV{/if} - {if !empty($result.firstaired)} - Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} - {if $result.anidbid > 0}View - Anime{/if} - {if !empty($result.failed)} - - {$result.grabs} Grab{if $result.grabs != 1}s{/if} / - - {$result.failed} Failed Download{if $result.failed != 1}s{/if}{/if} -
{$result.category_name} - {$result.postdate|timeago}{$result.size|fsize_format:"MB"} - - - - {if isset($sabintegrated) && $sabintegrated !=""} - - - +
+ {if isset($covgroup) && $covgroup != ''}View: + Covers + | + List +
{/if} - {if $weHasVortex} - - {/if} -
-
-
-
-
- {if isset($section) && $section != ''}View: - Covers - | - List -
- {/if} - With Selected: -
- - - - {if isset($sabintegrated) && $sabintegrated !=""} + With Selected: +
- {/if} - {if isset($isadmin)} - - - {/if} + data-original-title="Download NZBs"> + + + + {if isset($sabintegrated) && $sabintegrated !=""} + + {/if} + {if isset($isadmin)} + + + {/if} +
+
+ {$pager} +
-
- {$pager} +
+ + + + + + + + + + + + + + {foreach $results as $result} + + + + + + + + + {/foreach} + +
Name + + + CategoryPostedSizeAction + Bulk Actions ( ) +
+ {$result.searchname|escape:"htmlall"|replace:".":" "}{if !empty($result.failed)} + {/if} +
+ {$result.grabs} + Grab{if $result.grabs != 1}s{/if} + {if $result.nfoid > 0}NFO + {/if} + {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} + {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} + {if $result.videos_id > 0}View TV{/if} + {if !empty($result.firstaired)} + Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} + {if $result.anidbid > 0}View + Anime{/if} + {if !empty($result.failed)} + + {$result.grabs} Grab{if $result.grabs != 1}s{/if} / + + {$result.failed} Failed Download{if $result.failed != 1}s{/if} + {/if} +
{$result.category_name} + {$result.postdate|timeago}{$result.size|fsize_format:"MB"} + + + + {if isset($sabintegrated) && $sabintegrated !=""} + + + + + {/if} + {if $weHasVortex} + + {/if} +
+
+
+
+
+ {if isset($section) && $section != ''}View: + Covers + | + List +
+ {/if} + With Selected: +
+ + + + {if isset($sabintegrated) && $sabintegrated !=""} + + {/if} + {if isset($isadmin)} + + + {/if} +
+
+
+
+ {$pager} +
diff --git a/www/themes/Omicron/templates/browse.tpl b/www/themes/Omicron/templates/browse.tpl index 7f52ec820..c9ab5e697 100755 --- a/www/themes/Omicron/templates/browse.tpl +++ b/www/themes/Omicron/templates/browse.tpl @@ -10,180 +10,196 @@ {$site->adbrowse} {if $results|@count > 0} -
-
-
-
-
-
- {if isset($shows)} -

- Series List | - Manage - My Shows | - Rss - Feed -

- {/if} -
- {if isset($covgroup) && $covgroup != ''}View: - Covers - - | - List -
+
+
+
+
+
+
+
+ {if isset($shows)} +

+ Series List | + Manage + My Shows | + Rss + Feed +

{/if} - With Selected: -
- - - {if isset($sabintegrated) && $sabintegrated !=""} - +
+ {if isset($covgroup) && $covgroup != ''}View: + Covers + + | + List +
{/if} - {if isset($isadmin)} + With Selected: +
+ class="nzb_multi_operations_download btn btn-sm btn-success" + value="Download NZBs"/> - {/if} + class="nzb_multi_operations_cart btn btn-sm btn-info" + value="Send to my Download Basket"/> + {if isset($sabintegrated) && $sabintegrated !=""} + + {/if} + {if isset($isadmin)} + + + {/if} +
+
+ {$pager} +
-
- {$pager} -
-
-
- - - - - - - - - - - - - {foreach $results as $result} - - - - - - - - - {/foreach} - -
Name - - - - - - - CategoryPostedSizeAction
- {$result.searchname|escape:"htmlall"|replace:".":" "}{if !empty($result.failed)} {/if} -
- {$result.grabs} - Grab{if $result.grabs != 1}s{/if} - {if $result.nfoid > 0}NFO{/if} - {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} - {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} - {if $result.videos_id > 0}View TV{/if} - {if isset($result.firstaired) && $result.firstaired != ""} - Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} - {if $result.anidbid > 0}View Anime{/if} - {if !empty($result.failed)} - {$result.grabs} Grab{if $result.grabs != 1}s{/if} / {$result.failed} Failed Download{if $result.failed != 1}s{/if}{/if}
{$result.category_name} - {$result.postdate|timeago}{$result.size|fsize_format:"MB"} - - - - - +
+ + + + + + + + + + + + + {foreach $results as $result} + + + + + + + + + {/foreach} + +
Name + + - {if isset($sabintegrated) && $sabintegrated !=""} + + + + CategoryPostedSizeAction
+ {$result.searchname|escape:"htmlall"|replace:".":" "}{if !empty($result.failed)} + {/if} +
+ {$result.grabs} + Grab{if $result.grabs != 1}s{/if} + {if $result.nfoid > 0}NFO + {/if} + {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} + {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} + {if $result.videos_id > 0}View TV + {/if} + {if isset($result.firstaired) && $result.firstaired != ""} + Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} + {if $result.anidbid > 0}View Anime + {/if} + {if !empty($result.failed)} + + {$result.grabs} Grab{if $result.grabs != 1}s{/if} / + + {$result.failed} Failed Download{if $result.failed != 1}s{/if} + {/if}
{$result.category_name} + {$result.postdate|timeago}{$result.size|fsize_format:"MB"} + + + class="icon_cart text-muted fa fa-shopping-basket" + title="Send to my Download Basket"> + {if isset($sabintegrated) && $sabintegrated !=""} + + + + + {/if} + {if $weHasVortex} + + {/if} +
+
+
+
+
+ {if isset($section) && $section != ''}View: + Covers + | + List +
{/if} - {if $weHasVortex} - - {/if} -
-
-
-
-
- {if isset($section) && $section != ''}View: - Covers - | - List -
- {/if} - With Selected: -
- - - {if isset($sabintegrated) && $sabintegrated !=""} + With Selected: +
- {/if} - {if isset($isadmin)} + class="nzb_multi_operations_download btn btn-sm btn-success" + value="Download NZBs"/> - - {/if} + class="nzb_multi_operations_cart btn btn-sm btn-info" + value="Send to my Download Basket"/> + {if isset($sabintegrated) && $sabintegrated !=""} + + {/if} + {if isset($isadmin)} + + + {/if} +
-
-
- {$pager} +
+ {$pager} +