summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-09 19:32:44 -0700
committereliott <eliott@cactuswax.net>2008-04-09 19:32:44 -0700
commit26aea7ab45ecb25dc61f6b046456f239d4277e17 (patch)
tree7d982e420f2a6ce89e7445f90d0117d9d8b17d6e /templates
parent3eea31d8f2d5a4213b00eedaabfc75770aeb418f (diff)
Cleanup from the previous change to the model for Arches and Repos.
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/details.html4
-rw-r--r--templates/packages/search.html4
-rw-r--r--templates/todolists/view.html4
3 files changed, 6 insertions, 6 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 873609ee..1784ab79 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -33,10 +33,10 @@
<table class="listing">
<tr>
<th>Architecture:</th>
- <td>{{ pkg.get_arch_display }}</td>
+ <td>{{ pkg.arch.name }}</td>
</tr><tr>
<th>Repository:</th>
- <td>{{ pkg.get_repo_display|capfirst }}</td>
+ <td>{{ pkg.repo.name|capfirst }}</td>
</tr><tr>
<th>Description:</th>
<td>{{ pkg.pkgdesc }}</td>
diff --git a/templates/packages/search.html b/templates/packages/search.html
index 1e8d2659..b58ad07a 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -87,8 +87,8 @@
{% if not user.is_anonymous %}
<td><input type="checkbox" name="pkgid" value="{{ pkg.id }}" /></td>
{% endif %}
- <td>{{ pkg.get_arch_display }}</td>
- <td>{{ pkg.get_repo_display|capfirst }}</td>
+ <td>{{ pkg.arch.name }}</td>
+ <td>{{ pkg.repo.name|capfirst }}</td>
<td><a href="{{ pkg.get_absolute_url }}">{{ pkg.pkgname }}</a></td>
{% if pkg.needupdate %}
<td><span style="color:red">{{ pkg.pkgver }}-{{ pkg.pkgrel }}</span></td>
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index c8a3e9bb..1ebf810c 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -48,8 +48,8 @@
{% for pkg in pkgs %}
<tr class="{% cycle even,odd %}">
<td><a href="/packages/{{ pkg.pkg.id }}/">{{ pkg.pkg.id }}</a></td>
- <td>{{ pkg.pkg.get_arch_display }}</td>
- <td>{{ pkg.pkg.get_repo_display }}</td>
+ <td>{{ pkg.pkg.arch.name }}</td>
+ <td>{{ pkg.pkg.repo.name|capfirst }}</td>
<td>{{ pkg.pkg.pkgname }}</td>
<td>{{ pkg.pkg.maintainer.get_full_name|default:"Orphan" }}</td>
<td>