diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-04-14 19:27:57 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-04-14 19:27:57 -0400 |
| commit | 7665efca73708fe079e41c6fbd5d6cd42af25f7d (patch) | |
| tree | 58e33aa1dde2235baf1cb0c8e02995bcfd42bee3 /templates | |
| parent | 6738ab0eac3363c33ff74b99dd945444943e3f72 (diff) | |
| download | omnisearch-7665efca73708fe079e41c6fbd5d6cd42af25f7d.tar.gz | |
feat: hide 'view more' button when there is no link
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/results.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/results.html b/templates/results.html index 2e34811..f97a096 100644 --- a/templates/results.html +++ b/templates/results.html @@ -116,10 +116,12 @@ <img src="{{info[1]}}" alt="{{info[0]}}" class="infobox-image"> <div class="infobox-content"> <p class="infobox-summary"> {{info[2]|safe}} - </p> -<a class="read-more" href="{{info[3]}}"> + </p> + {{if info[3] != "#"}} + <a class="read-more" href="{{info[3]}}"> {{l("read_more")}} </a> + {{endif}} </div> </div> </section> @@ -129,4 +131,4 @@ </div> </body> -</html>
\ No newline at end of file +</html> |
