X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=ddfd729ac9500dd3a534e8a3927af8243f38a329;hb=dec5fe9c6973054a1301982f910de86a19502b55;hp=58d5867ed159fe92802fefc9bc46e2b90125d8c3;hpb=8e0ad1d9208be864b33e2ebc3dc1ea2ff988a627;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/linklist.html b/tpl/linklist.html index 58d5867e..ddfd729a 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -1,12 +1,35 @@ -{include="includes"} + + + {include="includes"} + @@ -14,111 +37,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"} - + +