]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #925 from ArthurHoaro/theme/remove-2nd-sort-by
authorArthurHoaro <arthur@hoa.ro>
Sat, 19 Aug 2017 15:57:29 +0000 (17:57 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2017 15:57:29 +0000 (17:57 +0200)
Remove the 2nd green 'sort by' row in link list

index.php
tpl/default/tag.list.html

index 82a92473c189b48b0edada26eac72b503c8348eb..b4c4347a40c46addc904079ae31f36b6b08da707 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1021,7 +1021,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
 
     // -------- User wants to see only untagged links (toggle)
     if (isset($_GET['untaggedonly'])) {
-        $_SESSION['untaggedonly'] = !empty($_SESSION['untaggedonly']);
+        $_SESSION['untaggedonly'] = empty($_SESSION['untaggedonly']);
 
         if (! empty($_SERVER['HTTP_REFERER'])) {
             $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));
index 254397fb076e08624b4d9326b1aac36450325eb4..a3e741d394588ebe8730e6ba73e91c89ef06397a 100644 (file)
   <div class="pure-u-lg-2-3 pure-u-22-24 page-form page-visitor">
     {$countTags=count($tags)}
     <h2 class="window-title">{'Tag list'|t} - {$countTags} {'tags'|t}</h2>
-    <p style="text-align: center">
-      <a href="?searchtags={$search_tags|urlencode}">{'List all links with those tags'|t}</a>
-    </p>
+    {if="!empty($search_tags)"}
+      <p class="center">
+        <a href="?searchtags={$search_tags|urlencode}">{'List all links with those tags'|t}</a>
+      </p>
+    {/if}
 
     <div id="search-tagcloud" class="pure-g">
       <div class="pure-u-lg-1-4"></div>