From: Michael Tremer Date: Tue, 9 May 2023 16:23:11 +0000 (+0000) Subject: search: Refactor page with bulma X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f359a497d41d9382006b8b22565ae28c78e0538;p=pbs.git search: Refactor page with bulma Signed-off-by: Michael Tremer --- diff --git a/src/templates/search.html b/src/templates/search.html index 2ee5845f..af9afa1a 100644 --- a/src/templates/search.html +++ b/src/templates/search.html @@ -2,105 +2,119 @@ {% block title %}{{ _("Search") }}{% if q %} - {{ q }}{% end %}{% end block %} -{% block container %} - +{% block body %} +
+
+ - {# Did we find anything? #} - {% set nothing_found = q and not packages and not files and not users %} + {# Did we find anything? #} + {% set nothing_found = q and not packages and not files and not users %} -
-
- {% if nothing_found %} -
- {{ _("We could not find anything for '%s'") % q }} -
- {% end %} - -
-
- +
+
+ {% if nothing_found %} +
+ {{ _("We could not find anything for '%s'") % q }} +
+ {% end %} -
- -
+ +
+
+ +
+
+ +
+
+
- +
-
+
{# Packages #} {% if packages %} -

- {{ _("Packages") }} {{ len(packages) }} -

+
+
+

+ {{ _("Packages") }} {{ len(packages) }} +

- - - {% for package in packages %} - - - - - {% end %} - -
- {{ package.name }} - - {{ package.summary }} -
+ + + {% for package in packages %} + + + + + {% end %} + +
+ {{ package.name }} + + {{ package.summary }} +
+
+
{% end %} {# Files #} {% if files %} -

- {{ _("Files") }} {{ len(files) }} -

+
+
+

+ {{ _("Files") }} {{ len(files) }} +

- - - {% for file in files %} - - - - - {% end %} - -
- {{ file.name }} - - {{ file }} -
+ + + {% for file in files %} + + + + + {% end %} + +
+ {{ file.name }} + + {{ file }} +
+
+
{% end %} {# Users #} {% if users %} -

- {{ _("Users") }} {{ len(users) }} -

+
+
+

+ {{ _("Users") }} {{ len(users) }} +

- - - {% for user in users %} - - - - {% end %} - -
- {{ user }} -
+ + + {% for user in users %} + + + + {% end %} + +
+ {{ user }} +
+
+
{% end %} {% end block %}