X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=3fe86deba1af17b85e378f513bddb45200090907;hb=a0d079141eb155c263ebfaa1aad2629382223e31;hp=666748a7b3f2d4bf660ee116ed016af9b2dc32a3;hpb=90e5bd65c9d4a5d3d5cedfeaa1314f2a15df5227;p=github%2Fshaarli%2FShaarli.git
diff --git a/tpl/linklist.html b/tpl/linklist.html
index 666748a7..3fe86deb 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -7,19 +7,38 @@
@@ -35,22 +54,26 @@
{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} 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}