diff --git a/Changelog b/Changelog index 85e6c3e7e..89ec67bee 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2017-06-15 DariusIII + * Fix: Fix collection regexes testing page 2017-06-14 DariusIII * Chg: Use monolog/monolog to handle logging * Chg: Update composer libraries diff --git a/www/admin/collection_regexes-test.php b/www/admin/collection_regexes-test.php index a60043af1..cb890129e 100644 --- a/www/admin/collection_regexes-test.php +++ b/www/admin/collection_regexes-test.php @@ -6,9 +6,7 @@ use nntmux\Regexes; $page = new AdminPage(); -$page->title = "Collections Regex Test"; - -$page->smarty->assign('tpg', $tpg); +$page->title = 'Collections Regex Test'; $group = trim(isset($_POST['group']) && !empty($_POST['group']) ? $_POST['group'] : ''); $regex = trim(isset($_POST['regex']) && !empty($_POST['regex']) ? $_POST['regex'] : ''); diff --git a/www/themes/shared/templates/admin/collection_regexes-test.tpl b/www/themes/shared/templates/admin/collection_regexes-test.tpl index 127041bce..dba35eb16 100644 --- a/www/themes/shared/templates/admin/collection_regexes-test.tpl +++ b/www/themes/shared/templates/admin/collection_regexes-test.tpl @@ -2,45 +2,42 @@

This page is used for testing regex for grouping usenet collections.
Enter the group name to test and a regex. Limit is how many collections to show max on the page, 0 for no limit(slow).

-{if $tpg} -
- -
- -
- -
- -
- {if isset($data)} +
+ +
+ +
+ +
+ +
+{if isset($data)} - {foreach from=$data key=hash item=collection} - - - + {foreach from=$data key=hash item=collection} +
{$hash}
Current Files: {count($collection)}
+ + + +
{$hash}
Current Files: {count($collection)}
+ + + + + + + + + {foreach from=$collection item=row} + + + + + + -
namecurrent partstotal partsposterold hash
{$row.file_name}{$row.file_current_parts}{$row.file_total_parts}{$row.collection_poster}{$row.old_collection_hash}
- - - - - - - - - {foreach from=$collection item=row} - - - - - - - - {/foreach} -
namecurrent partstotal partsposterold hash
{$row.file_name}{$row.file_current_parts}{$row.file_total_parts}{$row.collection_poster}{$row.old_collection_hash}
- {/foreach} - {/if} -{else} -

The Table Per Group setting is required to be on to use this page, for performance reasons.

+ {/foreach} + + {/foreach} {/if} +