summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-08 11:36:18 -0600
committerDan McGee <dan@archlinux.org>2012-03-08 11:36:18 -0600
commit7edc58c89c78d2e7c4f646e4b8562bc52ad7218d (patch)
tree3bdbb042e847c5ab0261d491573c39b02a5cff53 /templates/packages
parent314608aee372c890031cd89f556327a93a2538e6 (diff)
Show signature data on package details page
Now that we have a way to decode and process the signature data, we can match the key_id to a known developer if possible and show this data on the package page. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/details.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index e0dd7034..be7da7be 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load package_extras %}
+{% load pgp %}
{% block title %}Arch Linux - {{ pkg.pkgname }} {{ pkg.full_version }} ({{ pkg.arch.name }}){% endblock %}
{% block navbarclass %}anb-packages{% endblock %}
@@ -145,12 +146,15 @@
<th>Last Packager:</th>
<td>{% with pkg.packager as pkgr %}{% if pkgr %}{% packager_link pkgr %}{% else %}{{ pkg.packager_str }}{% endif %}{% endwith %}</td>
</tr><tr>
- <th>Signed:</th>
- <td>{{ pkg.is_signed|yesno|capfirst }}</td>
- </tr><tr>
<th>Build Date:</th>
<td>{{ pkg.build_date|date:"DATETIME_FORMAT" }} UTC</td>
</tr><tr>
+ <th>Signed By:</th>
+ <td>{% with pkg.signer as signer %}{% if signer %}{% pgp_key_link pkg.signature.key_id signer.get_full_name %}{% else %}Unsigned{% endif %}{% endwith %}</td>
+ </tr>{% if pkg.signature %}<tr>
+ <th>Signature Date:</th>
+ <td>{{ pkg.signature.datetime|date:"DATETIME_FORMAT" }} UTC</td>
+ </tr>{% endif %}<tr>
<th>Last Updated:</th>
<td>{{ pkg.last_update|date }}</td>
</tr>