X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=d42323423bc3411bc75de98ecda8bf0ead6cb6ac;hb=f4ebd5fed20b29c4fb580983b4be7bd0a52151b9;hp=f6e9e82b6a42eaf39690129dd99717abbb505524;hpb=b39b1bc2eeebcb52f37f33f63fa645db014130c3;p=github%2Fshaarli%2FShaarli.git
diff --git a/tpl/linklist.html b/tpl/linklist.html
index f6e9e82b..d4232342 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}