OpenPGP - part 3 - unstable (#53)

This commit is contained in:
RainLoop Team 2014-01-29 03:53:30 +04:00
parent 0bb69d4494
commit 3d3ad8d459
14 changed files with 456 additions and 206 deletions

View file

@ -194,15 +194,15 @@
  
<span class="i18n text" data-i18n-text="MESSAGE/BUTTON_NOTIFY_READ_RECEIPT"></span>
</div>
<div class="pgpSigned" data-bind="visible: message() && message().isPgpSigned(), click: function() {}">
<div class="pgpSigned" data-bind="visible: message() && message().isPgpSigned(), click: receivePrivateKey">
<i class="icon-lock"></i>
&nbsp;&nbsp;
PGP signed
PGP signed (click to verify)
</div>
<div class="pgpEncrypted" data-bind="visible: message() && message().isPgpEncrypted(), click: function() {}">
<div class="pgpEncrypted" data-bind="visible: message() && message().isPgpEncrypted(), click: receivePrivateKey">
<i class="icon-lock"></i>
&nbsp;&nbsp;
PGP encrypted
PGP encrypted (click to decrypt)
</div>
<div class="attachmentsPlace" data-bind="visible: message() && message().hasVisibleAttachments()">
<ul class="attachmentList" data-bind="foreach: message() ? message().attachments() : []">

View file

@ -0,0 +1,34 @@
<div class="popups">
<div class="modal hide b-pgp-key g-ui-user-select-none" data-bind="modal: modalVisibility">
<div>
<div class="modal-header">
<button type="button" class="close" data-bind="command: cancelCommand">&times;</button>
<h3>
PGP
</h3>
</div>
<div class="modal-body">
<div class="form-horizontal">
<br />
<div class="control-group">
Passphrase
<br />
<input class="uiInput inputPassphrase" type="password" data-bind="value: passphrase" />
</div>
<div class="control-group">
Secret key
<br />
<textarea class="input-xxlarge inputKey" data-bind="value: key" rows="10" spellcheck="false"></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn buttonAction" data-bind="command: sendPgp">
<i class="icon-lock"></i>
&nbsp;&nbsp;
Decrypt
</a>
</div>
</div>
</div>
</div>