From e125ce74b87a86b80f1eead371390ce72c58428b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 4 Aug 2012 18:17:16 -0400 Subject: 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. --- templates/configurators/adddrive.hamlet | 30 ++++++++++++++++++++++++++ templates/configurators/addrepository.hamlet | 4 +--- templates/configurators/firstrepository.hamlet | 26 +++++++++++----------- templates/page.hamlet | 2 -- 4 files changed, 44 insertions(+), 18 deletions(-) create mode 100644 templates/configurators/adddrive.hamlet (limited to 'templates') 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 @@ +
+

+ Adding a removable drive +

+ Clone this repository to a USB drive, memory stick, or other # + removable media. +

+ $if (null writabledrives) +

+ $if (null removabledrives) +

+ No removable drives found + Please make sure you have a removable drive plugged in and mounted. + $else +

+ 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. +

+ + Rescan for removable drives + $else +

+
+ ^{form} + ^{authtoken} + # + + 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 @@
-

- Add repositories

- + Clone to a removable drive

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 @@

-

- Welcome to git-annex! -

- There's just one thing to do before you can start using the power # - and convenience of git-annex. -

- Create a git-annex repository -

- Files in this repository will managed by git-annex, # - and kept in sync with your repositories on other devices. -

- - ^{form} +

+ Welcome to git-annex! +

+ There's just one thing to do before you can start using the power # + and convenience of git-annex. +

+ Create a git-annex repository +

+ Files in this repository will managed by git-annex, # + and kept in sync with your repositories on other devices. +

+ + ^{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}