summaryrefslogtreecommitdiff
path: root/templates/configurators
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-04 18:17:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-04 18:17:16 -0400
commite125ce74b87a86b80f1eead371390ce72c58428b (patch)
tree7678eed91ecc956709b728655ea92b5ef5050fcf /templates/configurators
parente0c3958d9acc97c15a209c287c1d49e859ca4fea (diff)
work toward adding new repos on removable drives
This actually does add a new repo, but it doesn't yet set up remotes, or sync to it.
Diffstat (limited to 'templates/configurators')
-rw-r--r--templates/configurators/adddrive.hamlet30
-rw-r--r--templates/configurators/addrepository.hamlet4
-rw-r--r--templates/configurators/firstrepository.hamlet26
3 files changed, 44 insertions, 16 deletions
diff --git a/templates/configurators/adddrive.hamlet b/templates/configurators/adddrive.hamlet
new file mode 100644
index 000000000..030ef8a4c
--- /dev/null
+++ b/templates/configurators/adddrive.hamlet
@@ -0,0 +1,30 @@
+<div .span9 .hero-unit>
+ <h2>
+ Adding a removable drive
+ <p>
+ Clone this repository to a USB drive, memory stick, or other #
+ removable media.
+ <p>
+ $if (null writabledrives)
+ <div .span6 .alert .alert-error .alert-block>
+ $if (null removabledrives)
+ <h4 .alert-heading>
+ No removable drives found
+ Please make sure you have a removable drive plugged in and mounted.
+ $else
+ <h4 .alert-heading>
+ No usable removable drives found
+ Seems you cannot write to any of the removable drives that are #
+ currently mounted. Try plugging in a removable drive that you can #
+ write to, or correcting the write permissions.
+ <p>
+ <a .btn .btn-primary href="@{AddDriveR}">
+ Rescan for removable drives
+ $else
+ <form enctype=#{enctype}>
+ <fieldset>
+ ^{form}
+ ^{authtoken}
+ <button .btn .btn-primary type=submit>Use this drive</button> #
+ <a .btn href="@{AddDriveR}">
+ Rescan for removable drives
diff --git a/templates/configurators/addrepository.hamlet b/templates/configurators/addrepository.hamlet
index d91286ad8..1ba4f94bf 100644
--- a/templates/configurators/addrepository.hamlet
+++ b/templates/configurators/addrepository.hamlet
@@ -1,10 +1,8 @@
<div .span9>
- <h2>
- Add repositories
<div .row-fluid>
<div .span4>
<h3>
- <a href="">
+ <a href="@{AddDriveR}">
Clone to a removable drive
<p>
Clone this repository to a USB drive, memory stick, or other #
diff --git a/templates/configurators/firstrepository.hamlet b/templates/configurators/firstrepository.hamlet
index f4ffcf372..ac28119eb 100644
--- a/templates/configurators/firstrepository.hamlet
+++ b/templates/configurators/firstrepository.hamlet
@@ -1,14 +1,14 @@
<div .span9 .hero-unit>
- <h2>
- Welcome to git-annex!
- <p>
- There's just one thing to do before you can start using the power #
- and convenience of git-annex.
- <h2>
- Create a git-annex repository
- <p>
- Files in this repository will managed by git-annex, #
- and kept in sync with your repositories on other devices.
- <p>
- <form .form-inline enctype=#{enctype}>
- ^{form}
+ <h2>
+ Welcome to git-annex!
+ <p>
+ There's just one thing to do before you can start using the power #
+ and convenience of git-annex.
+ <h2>
+ Create a git-annex repository
+ <p>
+ Files in this repository will managed by git-annex, #
+ and kept in sync with your repositories on other devices.
+ <p>
+ <form .form-inline enctype=#{enctype}>
+ ^{form}