From: Michael Tremer Date: Sun, 28 Oct 2012 21:38:55 +0000 (+0100) Subject: Update search pages. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d61c64334848bc0cb661f3a7362bb4048c61212c;p=pbs.git Update search pages. --- diff --git a/data/templates/search-form.html b/data/templates/search-form.html index 1f275cad..a92a6d52 100644 --- a/data/templates/search-form.html +++ b/data/templates/search-form.html @@ -15,48 +15,35 @@ {% if pattern %} - -
- × -

{{ _("Notice") }}

- {{ _("Your search query '%s' did not return any results.") % pattern }} - {{ _("Use the box below to try again.") }} +

{{ _("No results for '%s'.") % pattern }}

{% else %} -
-
-

- {{ _("Type a search pattern into the box below and hit the 'Search' button.") }} -

-
-
+

+ {{ _("Type a search pattern into the box below and hit the button.") }} +

{% end %}
-
-
-
-

{{ _("Search pattern syntax") }}

-
-
+
-
+
-

{{ _("Package names and descriptions") }}

+

{{ _("Search for packages by name or description") }}

{{ _("If you type a package name to the search box you will get a link to the package.") }} {{ _("The search is performed in case insensitive mode.") }} @@ -68,7 +55,7 @@

-

{{ _("UUIDs") }}

+

{{ _("Search for UUIDs") }}

{{ _("If you type a UUID to the search box, you will be directed to the job, build or package it belongs to.") }} {{ _("This is a handy feature if you have a UUID and search for the corresponding package or build.") }} @@ -83,7 +70,7 @@

-

{{ _("Files") }}

+

{{ _("Search for files") }}

{{ _("You may also search for file names.") }} {{ _("You will get a list of packages that contain the file.") }} diff --git a/data/templates/search-results.html b/data/templates/search-results.html index ae1a366f..5c251afd 100644 --- a/data/templates/search-results.html +++ b/data/templates/search-results.html @@ -34,96 +34,85 @@

-
+
+ {% if pkgs %} -
-
-

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

+

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

- - - {% for pkg in pkgs %} - - - - - {% end %} - -
- - {{ pkg.name }} - - {{ pkg.summary }}
-
-
+ + + {% for pkg in pkgs %} + + + + + {% end %} + +
+ + {{ pkg.name }} + + {{ pkg.summary }}
{% end %} {% if files %} -
-
-

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

+

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

-

- {{ _("%s was found in the following package.", "%s was found in the following packages.", len(files)) % pattern }} -

+

+ {{ _("%s was found in the following package.", "%s was found in the following packages.", len(files)) % pattern }} +

- - - {% for pkg, file in files %} - - - - - {% end %} - -
- {{ pkg.friendly_name }} - -
{{ format_filemode(file.type, file.mode) }} {{ file.user }}:{{ file.group }} {% if file.size %}{{ format_size(file.size) }}{% else %}-{% end %} {{ file.name }}
-
-
-
+ + + {% for pkg, file in files %} + + + + + {% end %} + +
+ {{ pkg.friendly_name }} + +
{{ format_filemode(file.type, file.mode) }} {{ file.user }}:{{ file.group }} {% if file.size %}{{ format_size(file.size) }}{% else %}-{% end %} {{ file.name }}
+
{% end %} {% if users %} -
-
-

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

+

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

- - - {% for user in users %} - - - - - {% end %} - -
- {{ user.realname }} - {% if not user.name == user.realname %} - ({{ user.name }}) - {% end %} - - -   -
-
-
+ + + {% for user in users %} + + + + + {% end %} + +
+ {{ user.realname }} + {% if not user.name == user.realname %} + ({{ user.name }}) + {% end %} + + +   +
{% end %} {% end block %}