aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-04-01 12:17:37 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-25 15:51:12 +0200
commit7d86f40bdb2135655b5b4fe8cbcc1ac102114f86 (patch)
treec70ac4ad89a4fc84b8e52114aca7d9755cc92086 /tpl/default
parentb64d83cd2b60b6851741787f8ce2ae2c93092841 (diff)
downloadShaarli-7d86f40bdb2135655b5b4fe8cbcc1ac102114f86.tar.gz
Shaarli-7d86f40bdb2135655b5b4fe8cbcc1ac102114f86.tar.zst
Shaarli-7d86f40bdb2135655b5b4fe8cbcc1ac102114f86.zip
Empty tag search will look for not tagged links
Fixes #784 From now, searching for tags with an empty value will return only not tagged links, with the search bar showing `x results [not tagged]`. Note that using the api, the searchtags request parameter must be set to `false` to get the same result. - [ ] Update API doc
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/linklist.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html
index 57ef4567..3d6be529 100644
--- a/tpl/default/linklist.html
+++ b/tpl/default/linklist.html
@@ -89,7 +89,7 @@
89 <div id="searchcriteria">{'Nothing found.'|t}</div> 89 <div id="searchcriteria">{'Nothing found.'|t}</div>
90 </div> 90 </div>
91 </div> 91 </div>
92 {elseif="!empty($search_term) or !empty($search_tags) or !empty($visibility)"} 92 {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility)"}
93 <div class="pure-g pure-alert pure-alert-success search-result"> 93 <div class="pure-g pure-alert pure-alert-success search-result">
94 <div class="pure-u-2-24"></div> 94 <div class="pure-u-2-24"></div>
95 <div class="pure-u-20-24"> 95 <div class="pure-u-20-24">
@@ -105,6 +105,10 @@
105 <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a> 105 <a href="?removetag={function="urlencode($value)"}">{$value}<span class="remove"><i class="fa fa-times"></i></span></a>
106 </span> 106 </span>
107 {/loop} 107 {/loop}
108 {elseif="$search_tags === false"}
109 <span class="label label-tag" title="{'Remove tag'|t}">
110 <a href="?">{'untagged'|t}<span class="remove"><i class="fa fa-times"></i></span></a>
111 </span>
108 {/if} 112 {/if}
109 {if="!empty($visibility)"} 113 {if="!empty($visibility)"}
110 {'with status'|t} 114 {'with status'|t}