git-annex/templates/repolist.hamlet
Joey Hess 958312885f webapp: Improve UI around remote that have no annex.uuid set, either because setup of them is incomplete, or because the remote git repository is not a git-annex repository.
Complicated by such repositories potentially being repos that should have
an annex.uuid, but it failed to be gotten, perhaps due to the past ssh repo
setup bugs. This is handled now by an Upgrade Repository button.
2013-11-07 18:02:00 -04:00

64 lines
2.4 KiB
Text

<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>
<tbody #costsortable>
$forall (name, repoid, actions) <- repolist
<tr .repoline ##{show repoid}>
<td .handle>
<a .btn .btn-mini .disabled>
<i .icon-resize-vertical></i>
&nbsp; #{name}
<td .draghide>
$if needsEnabled actions
<a href="@{setupRepoLink actions}">
<i .icon-warning-sign></i> not enabled
$else
$if notWanted actions
<i .icon-trash></i> cleaning out..
$else
<a href="@{syncToggleLink actions}">
$if notSyncing actions
<i .icon-ban-circle></i> syncing disabled
$else
<i .icon-refresh></i> syncing enabled #
$if lacksUUID repoid
(metadata only)
<td .draghide>
$if needsEnabled actions
<a href="@{setupRepoLink actions}">
enable
$else
<span .dropdown #menu-#{show repoid}>
<a .dropdown-toggle data-toggle="dropdown" href="#menu-#{show repoid}">
<i .icon-cog></i> settings
<b .caret></b>
<ul .dropdown-menu>
<li>
<a href="@{setupRepoLink actions}">
<i .icon-pencil></i> Edit
$if not (lacksUUID repoid)
<a href="@{DisableRepositoryR $ asUUID repoid}">
<i .icon-minus></i> Disable
<a href="@{DeleteRepositoryR $ asUUID repoid}">
<i .icon-trash></i> Delete
$if addmore
<tr>
<td colspan="3">
$if nootherrepos
<a .btn .btn-primary .btn-large href="@{AddRepositoryR}">
<i .icon-plus-sign></i> Add another repository
$else
<a .btn .btn-small href="@{AddRepositoryR}">
<i .icon-plus-sign></i> Add another repository
<span>
&nbsp; Sync your files with another device, or #
share with a friend.