Make public key shareable via link

This commit is contained in:
Tankred Hase 2014-07-10 20:01:11 +02:00
parent 4e897d01ff
commit 66bd88c07f
3 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@ define(function(require) {
var appController = require('js/app-controller'),
dl = require('js/util/download'),
config = require('js/app-config').config,
pgp, keychain, userId;
//
@ -31,6 +32,7 @@ define(function(require) {
var fpr = keyParams.fingerprint;
$scope.fingerprint = fpr.slice(0, 4) + ' ' + fpr.slice(4, 8) + ' ' + fpr.slice(8, 12) + ' ' + fpr.slice(12, 16) + ' ' + fpr.slice(16, 20) + ' ' + fpr.slice(20, 24) + ' ' + fpr.slice(24, 28) + ' ' + fpr.slice(28, 32) + ' ' + fpr.slice(32, 36) + ' ' + fpr.slice(36);
$scope.keysize = keyParams.bitSize;
$scope.publicKeyUrl = config.cloudUrl + '/' + userId;
//
// scope functions

View File

@ -2,6 +2,7 @@
a {
color: $color-blue;
text-decoration: none;
}
table {

View File

@ -15,11 +15,11 @@
</tr>
<tr>
<td>PGP Key ID</td>
<td>{{keyId}} (<a href="https://whiteout.io/revocation.html" title="Click here to reset your account." target="_blank">Revoke key</a>)</td>
<td>{{keyId}} (<a href="https://whiteout.io/revocation.html" title="Click to reset your account." target="_blank">Revoke key</a>)</td>
</tr>
<tr>
<td>PGP Fingerprint</td>
<td><span>{{fingerprint}}</span></td>
<td><a href="{{publicKeyUrl}}" title="Click to share your public key." target="_blank">{{fingerprint}}</a></td>
</tr>
<tr>
<td>Key Size (RSA)</td>