git-annex/templates/repolist.hamlet

80 lines
3 KiB
Text
Raw Normal View History

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>
<tbody #costsortable>
$forall (name, repoid, currentlyconnected, actions) <- repolist
<tr .repoline ##{show repoid}>
<td .handle>
<a .btn .btn-default .btn-xs .disabled>
<span .glyphicon .glyphicon-resize-vertical>
&nbsp; #{name}
<td .draghide>
$if needsEnabled actions
<a href="@{setupRepoLink actions}">
<span .glyphicon .glyphicon-warning-sign>
\ not enabled
$else
$if notWanted actions
<span .glyphicon .glyphicon-trash>
\ cleaning out..
$else
<a href="@{syncToggleLink actions}">
$if currentlyconnected
2014-05-16 01:35:35 +00:00
<span title="connected; change notification enabled" .glyphicon .glyphicon-signal>
$else
$if notSyncing actions
<span .glyphicon .glyphicon-ban-circle>
$else
<span .glyphicon .glyphicon-refresh>
$if notSyncing actions
\ syncing disabled
$else
\ syncing enabled #
$if lacksUUID repoid
(metadata only)
<td .draghide>
$if needsEnabled actions
<a href="@{setupRepoLink actions}">
enable
$else
<div .dropdown #menu-#{show repoid}>
<a data-toggle="dropdown" data-target="#" href="#menu-#{show repoid}">
<span .glyphicon .glyphicon-cog>
\ actions #
<span .caret>
<ul .dropdown-menu>
<li>
<a href="@{setupRepoLink actions}">
<span .glyphicon .glyphicon-pencil>
\ Edit
$if not (lacksUUID repoid)
<a href="@{SyncNowRepositoryR $ asUUID repoid}">
<span .glyphicon .glyphicon-refresh>
\ Sync now
<a href="@{DeleteRepositoryR $ asUUID repoid}">
<span .glyphicon .glyphicon-trash>
\ Delete
$if addmore
<tr>
<td colspan="3">
$if nootherrepos
<a .btn .btn-primary .btn-lg href="@{AddRepositoryR}">
<span .glyphicon .glyphicon-plus-sign>
\ Add another repository
$else
<a .btn .btn-default .btn-sm href="@{AddRepositoryR}">
<span .glyphicon .glyphicon-plus-sign>
\ Add another repository
<span>
2013-04-02 19:45:35 +00:00
&nbsp; Sync your files with another device, or #
share with a friend.