2012-11-13 21:50:54 +00:00
|
|
|
<div ##{ident}>
|
|
|
|
$if onlyCloud reposelector
|
|
|
|
$if not (null repolist)
|
|
|
|
<h2>
|
|
|
|
Cloud repositories
|
|
|
|
$else
|
|
|
|
No cloud repositories are configured yet.
|
|
|
|
$else
|
|
|
|
$if not (null repolist)
|
|
|
|
<h2>
|
|
|
|
Repositories
|
|
|
|
<table .table .table-condensed>
|
2013-03-14 02:47:16 +00:00
|
|
|
<tbody #costsortable>
|
2014-04-09 19:26:41 +00:00
|
|
|
$forall (name, repoid, currentlyconnected, actions) <- repolist
|
2013-11-07 22:02:00 +00:00
|
|
|
<tr .repoline ##{show repoid}>
|
|
|
|
<td .handle>
|
2014-04-20 10:42:31 +00:00
|
|
|
<a .btn .btn-default .btn-xs .disabled>
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-resize-vertical>
|
2013-11-07 22:02:00 +00:00
|
|
|
#{name}
|
|
|
|
<td .draghide>
|
|
|
|
$if needsEnabled actions
|
|
|
|
<a href="@{setupRepoLink actions}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-warning-sign>
|
|
|
|
\ not enabled
|
2013-11-07 22:02:00 +00:00
|
|
|
$else
|
|
|
|
$if notWanted actions
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-trash>
|
|
|
|
\ cleaning out..
|
webapp: Improve handling of remotes whose setup has stalled.
This includes recovery from the ssh-agent problem that led to many reporting
http://git-annex.branchable.com/bugs/Internal_Server_Error:_Unknown_UUID/
(Including fixing up .ssh/config to set IdentitiesOnly.)
Remotes that have no known uuid are now displayed in the webapp as
"unfinished". There's a link to check their status, and if the remote
has been set annex-ignore, a retry button can be used to unset that and
try again to set up the remote.
As this bug has shown, the process of adding a ssh remote has some failure
modes that are not really ideal. It would certianly be better if, when
setting up a ssh remote it would detect if it's failed to get the UUID,
and handle that in the remote setup process, rather than waiting until
later and handling it this way.
However, that's hard to do, particularly for local pairing, since the
PairListener runs as a background thread. The best it could do is pop up an
alert if there's a problem. This solution is not much different.
Also, this solution handles cases where the user has gotten their repo into
a mess manually and let's the assistant help with cleaning it up.
This commit was sponsored by Chia Shee Liang. Thanks!
2013-07-31 20:01:20 +00:00
|
|
|
$else
|
2013-11-07 22:02:00 +00:00
|
|
|
<a href="@{syncToggleLink actions}">
|
2014-04-09 19:26:41 +00:00
|
|
|
$if currentlyconnected
|
2014-05-16 01:35:35 +00:00
|
|
|
<span title="connected; change notification enabled" .glyphicon .glyphicon-signal>
|
2014-04-09 19:26:41 +00:00
|
|
|
$else
|
|
|
|
$if notSyncing actions
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-ban-circle>
|
2014-04-09 19:26:41 +00:00
|
|
|
$else
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-refresh>
|
2013-11-07 22:02:00 +00:00
|
|
|
$if notSyncing actions
|
2014-04-21 11:05:52 +00:00
|
|
|
\ syncing disabled
|
2013-11-07 22:02:00 +00:00
|
|
|
$else
|
2014-04-21 11:05:52 +00:00
|
|
|
\ syncing enabled #
|
2013-11-07 22:02:00 +00:00
|
|
|
$if lacksUUID repoid
|
|
|
|
(metadata only)
|
|
|
|
<td .draghide>
|
|
|
|
$if needsEnabled actions
|
|
|
|
<a href="@{setupRepoLink actions}">
|
|
|
|
enable
|
|
|
|
$else
|
2014-04-20 10:42:31 +00:00
|
|
|
<div .dropdown #menu-#{show repoid}>
|
|
|
|
<a data-toggle="dropdown" data-target="#" href="#menu-#{show repoid}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-cog>
|
|
|
|
\ actions #
|
2014-04-20 10:42:31 +00:00
|
|
|
<span .caret>
|
2013-11-07 22:02:00 +00:00
|
|
|
<ul .dropdown-menu>
|
|
|
|
<li>
|
|
|
|
<a href="@{setupRepoLink actions}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-pencil>
|
|
|
|
\ Edit
|
2013-11-07 22:02:00 +00:00
|
|
|
$if not (lacksUUID repoid)
|
2014-03-06 22:11:44 +00:00
|
|
|
<a href="@{SyncNowRepositoryR $ asUUID repoid}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-refresh>
|
|
|
|
\ Sync now
|
2016-06-14 00:57:16 +00:00
|
|
|
$if notSyncing actions
|
|
|
|
<a title="Not allowed when syncing is disabled." href="#" style="color: #999;">
|
|
|
|
<span .glyphicon .glyphicon-trash>
|
|
|
|
\ Delete
|
|
|
|
$else
|
2013-11-07 22:02:00 +00:00
|
|
|
<a href="@{DeleteRepositoryR $ asUUID repoid}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-trash>
|
|
|
|
\ Delete
|
2013-03-15 04:34:42 +00:00
|
|
|
$if addmore
|
|
|
|
<tr>
|
|
|
|
<td colspan="3">
|
|
|
|
$if nootherrepos
|
2014-04-20 10:42:31 +00:00
|
|
|
<a .btn .btn-primary .btn-lg href="@{AddRepositoryR}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-plus-sign>
|
|
|
|
\ Add another repository
|
2013-03-15 04:34:42 +00:00
|
|
|
$else
|
2014-04-20 10:42:31 +00:00
|
|
|
<a .btn .btn-default .btn-sm href="@{AddRepositoryR}">
|
2014-04-21 11:05:52 +00:00
|
|
|
<span .glyphicon .glyphicon-plus-sign>
|
|
|
|
\ Add another repository
|
2013-03-15 04:34:42 +00:00
|
|
|
<span>
|
2013-04-02 19:45:35 +00:00
|
|
|
Sync your files with another device, or #
|
2013-03-15 04:34:42 +00:00
|
|
|
share with a friend.
|