diff options
author | Dan McGee <dan@archlinux.org> | 2012-12-28 21:44:09 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-12-28 21:48:29 +0100 |
commit | ee507a5b81d7a21eaa67da4c848522a5a97d2e3c (patch) | |
tree | a48e7b8c27ab27aaa055d40e90efdbfa093a6ad5 /templates/todolists | |
parent | 20b64e42672d185821cc584dfa4b133ee259a144 (diff) | |
download | archweb-ee507a5b81d7a21eaa67da4c848522a5a97d2e3c.tar.gz archweb-ee507a5b81d7a21eaa67da4c848522a5a97d2e3c.tar.xz |
Add a todolist package details link template tag
Given the way we retrieve certain related objects, it makes more sense
to use a custom tag here rather than our generic package details link
tag. When viewing a large todolist, this saves significantly on the
number of queries we need to build the page.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists')
-rw-r--r-- | templates/todolists/public_list.html | 4 | ||||
-rw-r--r-- | templates/todolists/view.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html index 41caf5b..da99bc0 100644 --- a/templates/todolists/public_list.html +++ b/templates/todolists/public_list.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load static from staticfiles %} -{% load package_extras %} +{% load todolists %} {% block title %}Arch Linux - Todo Lists{% endblock %} @@ -45,7 +45,7 @@ <tbody> {% for pkg in list.packages %} <tr class="{% cycle 'odd' 'even' %}"> - <td>{% pkg_details_link pkg.pkg pkg.pkgname %}</td> + <td>{% todopkg_details_link pkg %}</td> <td>{{ pkg.arch.name }}</td> <td>{{ pkg.repo.name|capfirst }}</td> <td>{{ pkg.maintainers|join:', ' }}</td> diff --git a/templates/todolists/view.html b/templates/todolists/view.html index 66bbec6..89a0512 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% load static from staticfiles %} -{% load package_extras %} +{% load todolists %} {% block title %}Arch Linux - Todo: {{ list.name }}{% endblock %} @@ -71,7 +71,7 @@ <tr class="{% cycle 'odd' 'even' %}{% if user in pkg.maintainers %} mine{% endif %} {{ pkg.arch.name }} {{ pkg.repo.name|lower }}"> <td>{{ pkg.arch.name }}</td> <td>{{ pkg.repo.name|capfirst }}</td> - <td>{% pkg_details_link pkg.pkg pkg.pkgname %}</td> + <td>{% todopkg_details_link pkg %}</td> {% if pkg.pkg.flag_date %} <td><span class="flagged">{{ pkg.pkg.full_version }}</span></td> {% else %} |