diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-29 18:37:07 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-29 18:37:07 +0200 |
commit | ef88f3d5ef696b71a65a81f143b13ae27175a1c5 (patch) | |
tree | 6e72a4655d2bcf7ea0699807837ce7a9f82f74c7 /main | |
parent | 5555ce02278defaef0ef1388c163701eea3aff7e (diff) | |
download | archweb-ef88f3d5ef696b71a65a81f143b13ae27175a1c5.tar.gz archweb-ef88f3d5ef696b71a65a81f143b13ae27175a1c5.tar.xz |
Add developer status table to master keys page
This shows the cross-product of each master key with each developer key
so you can see who has been signed, where signatures are missing, etc.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/templatetags/pgp.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/templatetags/pgp.py b/main/templatetags/pgp.py index 1ffc524..50b1aa1 100644 --- a/main/templatetags/pgp.py +++ b/main/templatetags/pgp.py @@ -50,4 +50,12 @@ def pgp_fingerprint(key_id, autoescape=True): return mark_safe(format_key(esc(key_id))) pgp_fingerprint.needs_autoescape = True + +@register.assignment_tag +def signature_exists(signatures, signer, signee): + if not signer or not signee: + return False + lookup = (signer[-16:], signee[-16:]) + return lookup in signatures + # vim: set ts=4 sw=4 et: |