From bd12d14654ddc87c1b4d45dbc388cc13e883dbd6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 23 Mar 2012 21:18:31 -0500 Subject: Differentiate between Unsigned and unknown signer This can happen when we add a new developer but the key isn't in the system yet. Signed-off-by: Dan McGee --- templates/packages/details.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/packages/details.html b/templates/packages/details.html index be7da7be..bbbef2eb 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -148,12 +148,15 @@ Build Date: {{ pkg.build_date|date:"DATETIME_FORMAT" }} UTC - - Signed By: - {% with pkg.signer as signer %}{% if signer %}{% pgp_key_link pkg.signature.key_id signer.get_full_name %}{% else %}Unsigned{% endif %}{% endwith %} {% if pkg.signature %} + Signed By: + {% with pkg.signer as signer %}{% if signer %}{% pgp_key_link pkg.signature.key_id signer.get_full_name %}{% else %}Unknown{% endif %}{% endwith %} + Signature Date: {{ pkg.signature.datetime|date:"DATETIME_FORMAT" }} UTC + {% else %} + Signed By: + Unsigned {% endif %} Last Updated: {{ pkg.last_update|date }} -- cgit v1.2.3-55-g3dc8