webapp: Initial support for setting up encrypted removable drives.
No support yet for generating new gpg keys. No support yet for adding existing encrypted repos from removable drives.
This commit is contained in:
parent
f53526501d
commit
b37aad6c06
9 changed files with 93 additions and 27 deletions
|
@ -29,4 +29,3 @@
|
|||
<button .btn .btn-primary type=submit onclick="$('#clonemodal').modal('show');">Use this drive</button> #
|
||||
<a .btn href="@{AddDriveR}">
|
||||
Rescan for removable drives
|
||||
^{cloneModal}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<p>
|
||||
Do you want to combine these files into your repository?
|
||||
<p>
|
||||
<a .btn href="@{FinishAddDriveR drive}">
|
||||
<a .btn href="@{FinishAddDriveR (RemovableDriveKey drive Nothing)}">
|
||||
<i .icon-resize-small></i> Combine the repositories #
|
||||
The combined repositories will sync and share their files.
|
||||
<p>
|
30
templates/configurators/adddrive/encrypt.hamlet
Normal file
30
templates/configurators/adddrive/encrypt.hamlet
Normal file
|
@ -0,0 +1,30 @@
|
|||
<div .span9 .hero-unit>
|
||||
<h2>
|
||||
Encrypt this drive?
|
||||
<p>
|
||||
Encrypting the repository stored on the removable drive at #
|
||||
<tt>#{mountPoint drive}</tt> #
|
||||
will prevent the data stored in it from being exposed if the drive #
|
||||
falls into the wrong hands. However, encryption #
|
||||
will also prevent you from sharing the drive with friends, or #
|
||||
easily accessing its contents on another computer.
|
||||
<p>
|
||||
<a .btn href="@{FinishAddDriveR (RemovableDriveKey drive Nothing)}">
|
||||
<i .icon-minus-sign></i> Do not encrypt repository #
|
||||
Anyone who has the drive can see the files stored on it.
|
||||
$forall (keyid, name) <- secretkeys
|
||||
<p>
|
||||
<a .btn href="@{FinishAddDriveR (RemovableDriveKey drive (Just keyid))}">
|
||||
<i .icon-ok-sign></i> Encrypt repository #
|
||||
to
|
||||
<span title="key id #{keyid}">
|
||||
<i .icon-user></i> #
|
||||
$if null name
|
||||
key id #{keyid}
|
||||
$else
|
||||
#{name}
|
||||
<p>
|
||||
<a .btn href="">
|
||||
<i .icon-plus-sign></i> Encrypt repository #
|
||||
with a new encryption key
|
||||
^{cloneModal}
|
Loading…
Add table
Add a link
Reference in a new issue