display a user's public signing key in settings if it exists
parent
ba53b50e0b
commit
3e9eb03e5a
|
@ -283,6 +283,7 @@ define(function () {
|
|||
out.settings_userFeedback = "Enable user feedback";
|
||||
|
||||
out.settings_anonymous = "You are not logged in. Settings here are specific to this browser.";
|
||||
out.settings_publicSigningKey = "Public Signing Key";
|
||||
|
||||
// index.html
|
||||
|
||||
|
|
|
@ -52,6 +52,19 @@ define([
|
|||
|
||||
$div.append($label).append($name);
|
||||
|
||||
var publicKey = obj.edPublic;
|
||||
if (publicKey) {
|
||||
var $pubLabel = $('<span>', {'class': 'label'})
|
||||
.text(Messages.settings_publicSigningKey + ':');
|
||||
var $pubKey = $('<input>', {type: 'text', readonly: true})
|
||||
.css({
|
||||
width: '28em'
|
||||
})
|
||||
.val(publicKey);
|
||||
$div.append('<br>').append($pubLabel).append($pubKey);
|
||||
}
|
||||
|
||||
|
||||
return $div;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue