From ebf292292f7ac8a4e69f9f8078c1dfbd2a5954b9 Mon Sep 17 00:00:00 2001 From: Thayer Williams Date: Tue, 16 Mar 2010 12:02:32 -0700 Subject: Redesigned Package Search page * moved non-tabular data out of tables * added tbody for pretty printing * form accessibility * descriptive href titles throughout * code cleanup (removing unnecessary line breaks, styling, etc.) * renamed page to Package Database * add descriptive text to bottom of database pages Signed-off-by: Dan McGee --- templates/packages/search.html | 235 ++++++++++++++++++++++------------------- 1 file changed, 126 insertions(+), 109 deletions(-) diff --git a/templates/packages/search.html b/templates/packages/search.html index 4f7bc77..2c85f0b 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load package_extras %} -{% block title %}Arch Linux - Package Search{% endblock %} +{% block title %}Arch Linux - Package Database{% endblock %} + {% block head %} @@ -9,129 +10,145 @@ {% endblock %} {% block content %} -
-

Search Criteria

-
- - - - - - - - - - - - - {% td_input search_form.arch %} - {% td_input search_form.repo %} - {% td_input search_form.q %} - {% td_input search_form.maintainer%} - {% td_input search_form.last_update %} - {% td_input search_form.flagged %} - {% td_input search_form.limit %} - - -
ArchRepositoryKeywordsMaintainerLast UpdateFlaggedPer Page
-
+ + +{% if package_list %} +
+ + {% if paginator %} +
+ +

{{paginator.count}} packages found. + Page {{page_obj.number}} of {{paginator.num_pages}}.

+ +

+ {% if page_obj.has_previous %} + + {% else %} + < Prev + {% endif %} + {% if page_obj.has_next %} + + {% else %} + Next > + {% endif %} +

+
-

+ {% endif %} + +
- {% if package_list %} -
- - - {% if paginator %} +
+ - - - + {% if user.is_authenticated %} + + {% endif %} + + + + + + - {% endif %} - - {% if user.is_authenticated %} - - {% endif %} - - - - - - - - + + {% for pkg in package_list %} - + {% if user.is_authenticated %} {% endif %} - - {% if pkg.needupdate %} - - {% else %} + + {% if pkg.needupdate %} + + {% else %} - {% endif %} - + {% endif %} + {% endfor %} - {% if paginator %} - - - - - - {% endif %} +
- {{paginator.count}} packages found. - Page {{page_obj.number}} of {{paginator.num_pages}}. - - {% if page_obj.has_previous %} - - <<< Previous - - {% else %} - <<< Previous - {% endif %} - - {% if page_obj.has_next %} - - Next >>> - - {% else %} - Next >>> - {% endif %} -  ArchRepoNameVersionDescriptionLast Updated
 ArchRepoNameVersionDescriptionLast Updated
{{ pkg.arch.name }} {{ pkg.repo.name|capfirst }}{{ pkg.pkgname }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgname }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgdesc }}{{ pkg.pkgdesc }} {{ pkg.last_update|date:"Y-m-d" }}
- {{paginator.count}} packages found. - Page {{page_obj.number}} of {{paginator.num_pages}}. - - {% if page_obj.has_previous %} - - <<< Previous - - {% else %} - <<< Previous - {% endif %} - - {% if page_obj.has_next %} - - Next >>> - - {% else %} - Next >>> - {% endif %} -
- {% if user.is_authenticated %} -
- - + + {% if paginator %} +
+ +

{{paginator.count}} packages found. Page {{page_obj.number}} of {{paginator.num_pages}}.

+ +

+ {% if page_obj.has_previous %} + + {% else %} + < Prev + {% endif %} + {% if page_obj.has_next %} + + {% else %} + Next > + {% endif %} +

+
{% endif %} - -
- {% endif %} -{% endblock %} + {% if user.is_authenticated %} +

+

+ {% endif %} + + + +
+ +
+

You are browsing the Arch Linux package database. From here you can find + detailed information about packages located in the official supported repositories. + For unsupported packages, browse the Arch User Repository (AUR).

+
+{% endif %} +{% endblock %} -- cgit v1.2.3-24-g4f1b