X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Flinklist.html;h=0f1a5e8ca9911ed164ee147ef3227bc9c0adf443;hb=63bddaad4b6578d5d9a5728cba9f2f0d552805e5;hp=ca91699ee81ff1ede7c4015d4803656dbe787cad;hpb=55d0a5c445cbbd4fc322051b7753d0b2106cfe68;p=github%2Fshaarli%2FShaarli.git
diff --git a/tpl/linklist.html b/tpl/linklist.html
index ca91699e..0f1a5e8c 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -11,16 +11,16 @@
@@ -44,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}
- {loop="links"}
+ {loop="$links"}
-
{$value.url|thumbnail}
@@ -67,11 +81,11 @@
{if="isLoggedIn()"}