webapp: Can now add a new local repository, and make it sync with the main local repository.

This commit is contained in:
Joey Hess 2013-02-18 20:37:26 -04:00
parent 9b91ea425c
commit e598b78a69
8 changed files with 58 additions and 39 deletions

View file

@ -1,15 +1,7 @@
<div .span9 .hero-unit>
<h2>
Add another repository
<p>
The form below will make a separate repository, that is not synced #
with your existing repository. You can use the new repository for #
different sorts of files, that are synced and shared with other #
devices and users.
Add another local repository
<p>
Where do you want to put this new repository?
<form .form-inline enctype=#{enctype}>
^{form}
<p>
<i .icon-asterisk></i> #
Do you want to add another repository that is kept in sync with #
the current one? If so, <a href="@{RepositoriesR}">go here</a>.

View file

@ -2,16 +2,16 @@
<h2>
Combine repositories?
<p>
You have created a new repository at #{newrepopath}. #
Do you want to combine it with your existing repository at #{mainrepopath}?
You have created a new repository at #{newrepo}.
<br>
Do you want to combine it with your existing repository at #{mainrepo}?
<p>
Combining the repositories will sync their files, so each will have #
added to it all files from the other repository.
<a .btn href="@{CombineRepositoryR newrepopath newrepouuid}">
<i .icon-resize-small></i> Combine the repositories #
The combined repositories will sync and share their files.
<p>
If you want to use the new repository to hold different sorts of files, #
you should not combine the repositories.
-or-
<p>
<a .btn .btn-primary href="@{CombineRepository newrepopath}">
<i .icon-resize-small></i> Combine the repositories
<a .btn href="@{SwitchToRepositoryR newrepopath}">
<i .icon-resize-full></i> Keep the repositories separate
<i .icon-resize-full></i> Keep the repositories separate #
Files placed in one will not be synced to the other.

View file

@ -15,9 +15,7 @@
<p>
Pair with a computer to automatically keep files in sync #
over your local network.
<p>
For easy sharing with friends and devices in the same location.
<h3>
@ -31,6 +29,12 @@
For easy sharing with friends and devices, over the internet.
<h3>
<a href="@{NewRepositoryR}">
<i .icon-plus-sign></i> Add a local repository
<p>
Make another repository on your computer.
<h3>
<i .icon-plus-sign></i> Phone
<p>