From e4f63d51b226b70342277a882b94fbc4770e93be Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 31 Jan 2010 11:50:34 -0600 Subject: Fix up the packages search page * Don't show checkboxes for non-authenticated users * Fix up the adopt buttons to not be a table row * Fix the form which didn't have a closing tag Signed-off-by: Dan McGee --- media/arch.css | 3 +++ templates/packages/search.html | 25 ++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/media/arch.css b/media/arch.css index bfe656df..ab9d0f6c 100644 --- a/media/arch.css +++ b/media/arch.css @@ -159,6 +159,9 @@ div.listing { background: #f6efe0; border: 1px solid #eee4cb; } +#adoptbox { + text-align:center; +} .smalltext { text-align: right; font-size: x-small; diff --git a/templates/packages/search.html b/templates/packages/search.html index 93b18b28..67d61fbb 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -39,10 +39,11 @@ {% if package_list %}
+
{% if paginator %} - @@ -67,8 +68,9 @@ {% endif %} - + {% if user.is_authenticated %} + {% endif %} @@ -80,7 +82,9 @@ {% for pkg in package_list %} + {% if user.is_authenticated %} + {% endif %} @@ -96,7 +100,7 @@ {% endfor %} {% if paginator %} - @@ -120,15 +124,14 @@ {% endif %} - {% if user.is_authenticated %} - - - - - - - {% endif %}
+ {{paginator.count}} packages found. Page {{page_obj.number}} of {{paginator.num_pages}}.
 Arch Repo Name
{{ pkg.arch.name }} {{ pkg.repo.name|capfirst }} {{ pkg.pkgname }}
+ {{paginator.count}} packages found. Page {{page_obj.number}} of {{paginator.num_pages}}.
  
+ {% if user.is_authenticated %} +
+ + +
+ {% endif %} +
{% endif %} {% endblock %} -- cgit v1.2.3