diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-08 23:32:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-08 23:32:08 -0400 |
commit | f62cc484826991bfdb5469b8cf0b7b6b7a617e43 (patch) | |
tree | 77292d1c296bdb33c490cbbe8eaffe5cdb97d6b7 /templates/configurators/pairing | |
parent | 6e60b08060a79182a6ae0180dbb7aefbc6011299 (diff) |
reorg templates
Diffstat (limited to 'templates/configurators/pairing')
-rw-r--r-- | templates/configurators/pairing/disabled.hamlet | 5 | ||||
-rw-r--r-- | templates/configurators/pairing/inprogress.hamlet | 10 | ||||
-rw-r--r-- | templates/configurators/pairing/prompt.hamlet | 50 |
3 files changed, 65 insertions, 0 deletions
diff --git a/templates/configurators/pairing/disabled.hamlet b/templates/configurators/pairing/disabled.hamlet new file mode 100644 index 000000000..c946aacc4 --- /dev/null +++ b/templates/configurators/pairing/disabled.hamlet @@ -0,0 +1,5 @@ +<div .span9 .hero-unit> + <h2> + Pairing not supported + <p> + This build of git-annex does not support pairing. Sorry! diff --git a/templates/configurators/pairing/inprogress.hamlet b/templates/configurators/pairing/inprogress.hamlet new file mode 100644 index 000000000..7b655b5a9 --- /dev/null +++ b/templates/configurators/pairing/inprogress.hamlet @@ -0,0 +1,10 @@ +<div .span9 .hero-unit> + <h2> + Pairing in progress .. + <p> + Now you should either go tell the owner of the computer you want to pair # + with the secret phrase you selected ("#{secret}"), or go enter it into # + the computer you want to pair with. + <p> + You do not need to leave this page open; pairing will finish automatically # + as soon as the secret phrase is entered into the other computer. diff --git a/templates/configurators/pairing/prompt.hamlet b/templates/configurators/pairing/prompt.hamlet new file mode 100644 index 000000000..82ca48b5a --- /dev/null +++ b/templates/configurators/pairing/prompt.hamlet @@ -0,0 +1,50 @@ +<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> #{problem} + <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. |