display a user's public signing key in settings if it exists
This commit is contained in:
parent
ba53b50e0b
commit
3e9eb03e5a
@ -283,6 +283,7 @@ define(function () {
|
|||||||
out.settings_userFeedback = "Enable user feedback";
|
out.settings_userFeedback = "Enable user feedback";
|
||||||
|
|
||||||
out.settings_anonymous = "You are not logged in. Settings here are specific to this browser.";
|
out.settings_anonymous = "You are not logged in. Settings here are specific to this browser.";
|
||||||
|
out.settings_publicSigningKey = "Public Signing Key";
|
||||||
|
|
||||||
// index.html
|
// index.html
|
||||||
|
|
||||||
|
|||||||
@ -52,6 +52,19 @@ define([
|
|||||||
|
|
||||||
$div.append($label).append($name);
|
$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;
|
return $div;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user