From 538f57c7446397b44036a0f3e068b298a43e4d70 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 27 Aug 2010 10:04:00 -0500 Subject: Make public todolist view more useful Show all the details the developer page does, make the lists always visible, and add JS table sorting to each table on the page. This commit also adds table sorting to the developer list view as well. Signed-off-by: Dan McGee --- templates/todolists/list.html | 2 +- templates/todolists/public_list.html | 46 +++++++++++++++++++++++++++--------- templates/todolists/view.html | 10 ++++---- 3 files changed, 42 insertions(+), 16 deletions(-) (limited to 'templates/todolists') diff --git a/templates/todolists/list.html b/templates/todolists/list.html index 3b2f75c..29829ca 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -13,7 +13,7 @@ {% endif %} - +
diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html index 7284120..fe5ffb5 100644 --- a/templates/todolists/public_list.html +++ b/templates/todolists/public_list.html @@ -9,22 +9,46 @@ {% for list in todo_lists %}

{{list.name}}

-

{{list.description|safe}}

-
    - {% for pkg in list.packages %} -
  • {{pkg.pkg.pkgname}}
  • - {% endfor %} -
+

{{list.description|safe|linebreaks}}

+
Name
+ + + + + + + + + + + {% for pkg in list.packages %} + + + + + + + + {% endfor %} + +
NameArchRepoMaintainerStatus
{{ pkg.pkg.pkgname }}{{ pkg.pkg.arch.name }}{{ pkg.pkg.repo.name|capfirst }}{{ pkg.pkg.maintainers|join:', ' }} + {% if pkg.complete %} + Complete + {% else %} + Incomplete + {% endif %} +
{% endfor %} {% load cdn %}{% jquery %} + {% endblock %} diff --git a/templates/todolists/view.html b/templates/todolists/view.html index 1c25392..b5f9a32 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -19,7 +19,7 @@

{{list.description|safe|linebreaks}}

- +
@@ -50,10 +50,9 @@ {% endfor %}
Name
- - - + {% load cdn %}{% jquery %} + {% endblock %} -- cgit v1.2.3-24-g4f1b