summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-23 21:18:31 -0500
committerDan McGee <dan@archlinux.org>2012-03-23 21:18:56 -0500
commitbd12d14654ddc87c1b4d45dbc388cc13e883dbd6 (patch)
tree78ed340e3f2b0d62d117ecea0db7630c228dcbeb
parent89bc612b3f3f5f01e2a4239f6c4a36eb0b0ea655 (diff)
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 <dan@archlinux.org>
-rw-r--r--templates/packages/details.html9
1 files 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 @@
</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>Signed By:</th>
+ <td>{% with pkg.signer as signer %}{% if signer %}{% pgp_key_link pkg.signature.key_id signer.get_full_name %}{% else %}Unknown{% endif %}{% endwith %}</td>
+ </tr><tr>
<th>Signature Date:</th>
<td>{{ pkg.signature.datetime|date:"DATETIME_FORMAT" }} UTC</td>
+ </tr>{% else %}<tr>
+ <th>Signed By:</th>
+ <td>Unsigned</td>
</tr>{% endif %}<tr>
<th>Last Updated:</th>
<td>{{ pkg.last_update|date }}</td>