git-annex/templates/configurators/pairing.hamlet
Joey Hess 3dd4b4058f implement pair request broadcasts
Pair requests are sent on all network interfaces, and contain the best
available hostname to use to contact the host on that interface.

Added a pairing in progress page.

Revert "reduce some boilerplate using ghc extensions", because it caused
overlapping instances for Text.
2012-09-08 13:04:19 -04:00

50 lines
1.8 KiB
Text

<div .span9 .hero-unit>
<h2>
Pairing with a local computer
<p>
$if start
Pair with a computer on your local network (or VPN), and the #
two git annex repositories will be combined into one, with changes #
kept in sync between them.
$else
Pairing with #{username}@#{hostname} will combine the two git annex #
repositories into one, with changes kept in sync between them.
<p>
$if start
For security, enter a secret phrase. This same secret phrase will #
also need to be entered on the computer you're pairing with. #
It will be used to verify you're pairing with the right computer.
$else
$if sameusername
For security, you need to enter the same secret phrase that was #
entered on #{hostname} when the pairing was started.
$else
For security, a secret phrase has been selected, which you need #
to enter here to complete the pairing. If you don't know the #
phrase, go ask #{username} ...
$if badphrase
<div .alert .alert-error>
<i .icon-warning-sign></i> #{msg}
<p>
<form .form-horizontal enctype=#{enctype}>
<fieldset>
^{form}
^{authtoken}
<div .form-actions>
<button .btn .btn-primary type=submit>
$if start
Start pairing
$else
Complete pairing
<div .alert .alert-info>
$if start
<p>
A good secret phrase is reasonably long. You'll only #
type it a few times. Only letters and numbers matter; #
punctuation and white space is ignored.
<p>
A quotation is one good choice, something like: #
"#{sampleQuote}"
$else
Only letters and numbers matter; punctuation and spaces are #
ignored.