whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/3] Commit 1298279: hotlink PGP keys
Date Wed, 02 Mar 2016 20:30:00 GMT
Commit 12982798de87cb19cf3bf5bd5071aabeca52c04d:
    hotlink PGP keys


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/roster/views/committer.js.rb                             | ++++++++++ -
------------------------------------------------------------
11 changes: 10 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/roster/views/committer.js.rb b/www/roster/views/committer.js.rb
index cc6c71c..7240def 100644
--- a/www/roster/views/committer.js.rb
+++ b/www/roster/views/committer.js.rb
@@ -109,7 +109,16 @@ def render
           _td 'PGP keys'
           _td do
             _ul @committer.pgp do |key|
-            _li {_samp key}
+              _li do
+                if key =~ /^[0-9a-fA-F ]+$/
+                  _samp do
+                    _a key, href: 'https://sks-keyservers.net/pks/lookup?' +
+                      'op=index&search=0x' + key.gsub(' ', '')
+                  end
+                else
+                  _samp key
+                end
+              end
             end
           end
         end

Mime
View raw message