mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 08:52:15 -05:00
Seperate PGP fingerprint w/ spaces to make it more readable
This commit is contained in:
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() {
|
ngModule.directive('woInputCode', function() {
|
||||||
var BLOCK_SIZE = 4;
|
var BLOCK_SIZE = 4;
|
||||||
var NUM_BLOCKS = 6;
|
var NUM_BLOCKS = 6;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<dl class="contacts__long-description">
|
<dl class="contacts__long-description">
|
||||||
<dt>Fingerprint</dt>
|
<dt>Fingerprint</dt>
|
||||||
<dd>{{key.fingerprint}}</dd>
|
<dd wo-fingerprint>{{key.fingerprint}}</dd>
|
||||||
|
|
||||||
<dt>Size</dt>
|
<dt>Size</dt>
|
||||||
<dd>{{key.bitSize}} bit</dd>
|
<dd>{{key.bitSize}} bit</dd>
|
||||||
|
Loading…
Reference in New Issue
Block a user