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 --- media/archweb.css | 9 ++----- templates/todolists/list.html | 2 +- templates/todolists/public_list.html | 46 +++++++++++++++++++++++++++--------- templates/todolists/view.html | 10 ++++---- 4 files changed, 44 insertions(+), 23 deletions(-) diff --git a/media/archweb.css b/media/archweb.css index e5753110..247bb00d 100644 --- a/media/archweb.css +++ b/media/archweb.css @@ -241,21 +241,16 @@ div.dash-stats h3 { color: #07b; } /* read only (public) todo lists */ #public_todo_lists .todo_list { - display: none; margin-left: 2em; } -#public_todo_lists h4 { - color: #07b; - cursor: pointer; -} /* dev dashboard: admin actions (add news items, todo list, etc) */ ul.admin-actions { float: right; list-style: none; margin-top: -2.5em; } ul.admin-actions li { display: inline; padding-left: 1.5em; } /* dev: todo list */ -#dev-todo .complete, #dev-todo-details .complete { color: green; } -#dev-todo .incomplete, #dev-todo-details .incomplete { color: red; } +.todo-table .complete { color: green; } +.todo-table .incomplete { color: red; } /* dev: signoff page */ #dev-signoffs ul { list-style: none; margin: 0; padding: 0; } 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 @@ {% 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 @@ {% 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 @@

{{list.description|safe|linebreaks}}

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