From c8ece67cec9c421ac0c711554edd34f022623b45 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 28 Dec 2012 00:27:20 -0600 Subject: Convert to using new todolist models everywhere This is a rather widespread set of changes converting usage to the new todo list and todo list package model recently introduced. The data migration is not included in this commit. After this commit, the old model should no longer be referenced anywhere. Signed-off-by: Dan McGee --- templates/todolists/view.html | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'templates/todolists/view.html') diff --git a/templates/todolists/view.html b/templates/todolists/view.html index b6f59704..0f3475a2 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -10,17 +10,17 @@

Todo List: {{ list.name }}

-

{{ list.date_added|date }} - {{ list.creator.get_full_name }}

+

{{ list.created|date }} - {{ list.creator.get_full_name }}

{{list.description|urlize|linebreaks}}
@@ -68,27 +68,22 @@

Filter Todo List Packages

{% for pkg in list.packages %} - - {{ pkg.pkg.arch.name }} - {{ pkg.pkg.repo.name|capfirst }} - {% pkg_details_link pkg.pkg %} + + {{ pkg.arch.name }} + {{ pkg.repo.name|capfirst }} + {% pkg_details_link pkg.pkg pkg.pkgname %} {% if pkg.pkg.flag_date %} {{ pkg.pkg.full_version }} {% else %} {{ pkg.pkg.full_version }} {% endif %} - {{ pkg.pkg.maintainers|join:', ' }} + {{ pkg.maintainers|join:', ' }} - {% if perms.main.change_todolistpkg %} - {% if pkg.complete %} + {% if perms.todolist.change_todolistpackage %} Complete + class="status-link {{ pkg.status_css_class }}" title="Toggle completion status">{{ pkg.get_status_display }} {% else %} - Incomplete - {% endif %} - {% else %} - {% if pkg.complete %}Complete{% else %}Incomplete{% endif %} + {{ pkg.get_status_display }} {% endif %} -- cgit v1.2.3-54-g00ecf