X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=3fe86deba1af17b85e378f513bddb45200090907;hb=ba0fd80732acbff0fcda57a0b31e4edfaa337001;hp=eadbc4cd9c645c099d27dd37092ccb64f91a9ac3;hpb=3259f1a81479ea24cc25e34529f4bafc655dbd0d;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/linklist.html b/tpl/linklist.html index eadbc4cd..3fe86deb 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -1,12 +1,45 @@ -{include="includes"} + + + {include="includes"} + @@ -14,111 +47,105 @@ {include="linklist.paging"} + + {if="count($links)==0"} -
Nothing found.
- {else} - {if="$search_type=='fulltext'"} -
{$result_count} results for {$search_crits}
- {/if} - {if="$search_type=='tags'"} -
{$result_count} results for tags - {loop="search_crits"} - {$value|htmlspecialchars} x - {/loop}
- {/if} +
Nothing found.
+ {elseif="!empty($search_term) or !empty($search_tags)"} +
+ {$result_count} results + {if="!empty($search_term)"} + for {$search_term} + {/if} + {if="!empty($search_tags)"} + {$exploded_tags=explode(' ', $search_tags)} + tagged + {loop="$exploded_tags"} + + {$value} x + + {/loop} + {/if} +
{/if} + + {include="linklist.paging"} {include="page.footer"} - + +