You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/03/02 21:30:00 UTC

[whimsy.git] [1/3] Commit 1298279: hotlink PGP keys

Commit 12982798de87cb19cf3bf5bd5071aabeca52c04d:
    hotlink PGP keys


Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@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