X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=2316f145d94aeac694848ab0e5de6ae1f4c992e4;hb=24cfb960cfdd88255333bfb2a08d586916b460ae;hp=47e67e71effd6e96ac8e93984c5c205ac532bb65;hpb=adb1d6c213e64f7a6f4559adbc4d1f69f5a74e62;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/linklist.html b/tpl/linklist.html index 47e67e71..2316f145 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -7,15 +7,29 @@ @@ -23,121 +37,96 @@ {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"} + + -