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') diff --git a/templates/todolists/list.html b/templates/todolists/list.html index 3b2f75c2..29829caa 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -13,7 +13,7 @@

Package Todo Lists

{% endif %} - +
diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html index 72841200..fe5ffb5d 100644 --- a/templates/todolists/public_list.html +++ b/templates/todolists/public_list.html @@ -9,22 +9,46 @@

Developer Todo Lists

{% 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 1c253921..b5f9a320 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -19,7 +19,7 @@

Todo List: {{ list.name }}

{{list.description|safe|linebreaks}}

- +
@@ -50,10 +50,9 @@

Todo List: {{ list.name }}

{% endfor %}
Name
- - - + {% load cdn %}{% jquery %} + {% endblock %} -- cgit v1.2.3-54-g00ecf