X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=0f1a5e8ca9911ed164ee147ef3227bc9c0adf443;hb=9cf93bcfc53c36e0dd59fcfc717ac483ee74b35a;hp=42a75a1af7be4059caf58c701e1ec4135f6b6fb9;hpb=a2d5ef2127881561bf359390fac2d8d336a37335;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/linklist.html b/tpl/linklist.html index 42a75a1a..0f1a5e8c 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"} + +