summaryrefslogtreecommitdiffstats
path: root/templates/packages
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-10 04:32:44 +0200
committereliott <eliott@cactuswax.net>2008-04-10 04:32:44 +0200
commit26aea7ab45ecb25dc61f6b046456f239d4277e17 (patch)
tree7d982e420f2a6ce89e7445f90d0117d9d8b17d6e /templates/packages
parent3eea31d8f2d5a4213b00eedaabfc75770aeb418f (diff)
downloadarchweb-26aea7ab45ecb25dc61f6b046456f239d4277e17.tar.gz
archweb-26aea7ab45ecb25dc61f6b046456f239d4277e17.tar.xz
Cleanup from the previous change to the model for Arches and Repos.
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/details.html4
-rw-r--r--templates/packages/search.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 873609e..1784ab7 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 1e8d265..b58ad07 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>