summaryrefslogtreecommitdiff
path: root/templates
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
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')
-rw-r--r--templates/configurators/adddrive.hamlet30
-rw-r--r--templates/configurators/addrepository.hamlet4
-rw-r--r--templates/configurators/firstrepository.hamlet26
-rw-r--r--templates/page.hamlet2
4 files changed, 44 insertions, 18 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}
diff --git a/templates/page.hamlet b/templates/page.hamlet
index 6321f7a18..5544221da 100644
--- a/templates/page.hamlet
+++ b/templates/page.hamlet
@@ -17,8 +17,6 @@
Current Repository: #{reldir}
<b .caret></b>
<ul .dropdown-menu>
- <li><a href="#">#{reldir}</a></li>
- <li .divider></li>
<li><a href="@{AddRepositoryR}">Add another repository</a></li>
$nothing
<div .container-fluid>