git-annex/templates/configurators/adddrive/encrypt.hamlet

30 lines
1.2 KiB
Text
Raw Normal View History

<div .col-sm-9>
<div .jumbotron>
<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 repository with friends, or #
easily accessing its contents on another computer.
<p>
<a .btn .btn-default onclick="$('#setupmodal').modal('show');" href="@{FinishAddDriveR drive NoRepoKey}">
<span .glyphicon .glyphicon-minus-sign>
\ Do not encrypt repository #
Anyone who has the drive can see the files stored on it.
$forall (keyid, name) <- secretkeys
<p>
<a .btn .btn-default onclick="$('#setupmodal').modal('show');" href="@{FinishAddDriveR drive (RepoKey keyid)}">
<span .glyphicon .glyphicon-ok-sign>
\ Encrypt repository #
to ^{gpgKeyDisplay keyid (Just name)}
<p>
<a .btn .btn-default onclick="$('#genkeymodal').modal('show');" href="@{GenKeyForDriveR drive}">
<span .glyphicon .glyphicon-plus-sign>
\ Encrypt repository #
with a new encryption key
2013-09-16 20:46:00 +00:00
^{setupDriveModal}
^{genKeyModal}