Seperate PGP fingerprint w/ spaces to make it more readable

master
Tankred Hase 9 years ago
parent c165ced523
commit d3b54187cb

@ -173,6 +173,16 @@ ngModule.directive('woClickFileInput', function() {
};
});
ngModule.directive('woFingerprint', function($timeout) {
return function(scope, elm) {
return $timeout(function() {
// add space after every fourth char to make pgp fingerprint more readable
var fingerprint = elm.text().replace(/(\w{4})/g, '$1 ').trim();
elm.text(fingerprint);
});
};
});
ngModule.directive('woInputCode', function() {
var BLOCK_SIZE = 4;
var NUM_BLOCKS = 6;

@ -31,7 +31,7 @@
</p>
<dl class="contacts__long-description">
<dt>Fingerprint</dt>
<dd>{{key.fingerprint}}</dd>
<dd wo-fingerprint>{{key.fingerprint}}</dd>
<dt>Size</dt>
<dd>{{key.bitSize}} bit</dd>

Loading…
Cancel
Save