automatic repolist updating
This commit is contained in:
parent
b7af4438f8
commit
d468e37f46
14 changed files with 135 additions and 70 deletions
|
@ -9,38 +9,23 @@
|
|||
$nothing
|
||||
A pair request has been sent to all other devices using your jabber #
|
||||
account.
|
||||
$else
|
||||
Pair request accepted.
|
||||
<h2>
|
||||
Configure a shared cloud repository
|
||||
$else
|
||||
Pair request accepted.
|
||||
<h2>
|
||||
Configure a shared cloud repository
|
||||
$maybe name <- friend
|
||||
<p>
|
||||
☂ To share files with #{name}, you'll need a repository in #
|
||||
the cloud, that you both can access.
|
||||
$if null cloudrepolist
|
||||
<hr>
|
||||
^{makeCloudRepositories}
|
||||
$else
|
||||
<p>
|
||||
Make sure that #{name} has access to one of these cloud repositories, #
|
||||
and that the repository is enabled.
|
||||
^{repoTable cloudrepolist}
|
||||
<hr>
|
||||
Or, add a new cloud repository:
|
||||
^{makeCloudRepositories}
|
||||
$nothing
|
||||
<p>
|
||||
☂ To share files with your other devices, when they're not #
|
||||
nearby, you'll need a repository in the cloud.
|
||||
$if null cloudrepolist
|
||||
<hr>
|
||||
^{makeCloudRepositories}
|
||||
$else
|
||||
<p>
|
||||
Make sure that your other devices are configured to access one of #
|
||||
these cloud repositories, and that the repository is enabled here #
|
||||
too.
|
||||
^{repoTable cloudrepolist}
|
||||
<hr>
|
||||
Or, add a new cloud repository:
|
||||
^{makeCloudRepositories}
|
||||
<p>
|
||||
Make sure that your other devices are configured to access a #
|
||||
cloud repository, and that the same repository is enabled here #
|
||||
too.
|
||||
^{cloudrepolist}
|
||||
<h2>
|
||||
Add a cloud repository
|
||||
^{makeCloudRepositories}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<div .span9>
|
||||
<h2>
|
||||
Your repositories
|
||||
^{repoTable repolist}
|
||||
^{repolist}
|
||||
<div .row-fluid>
|
||||
<div .span6>
|
||||
<h2>
|
||||
|
|
36
templates/configurators/repositories/list.hamlet
Normal file
36
templates/configurators/repositories/list.hamlet
Normal file
|
@ -0,0 +1,36 @@
|
|||
<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>
|
||||
$forall (num, name, actions) <- repolist
|
||||
<tr>
|
||||
<td>
|
||||
#{num}
|
||||
<td>
|
||||
#{name}
|
||||
<td>
|
||||
$if needsEnabled actions
|
||||
<a href="@{setupRepoLink actions}">
|
||||
<i .icon-warning-sign></i> not enabled
|
||||
$else
|
||||
<a href="@{syncToggleLink actions}">
|
||||
$if notSyncing actions
|
||||
<i .icon-pause></i> syncing paused
|
||||
$else
|
||||
<i .icon-refresh></i> syncing enabled
|
||||
<td>
|
||||
$if needsEnabled actions
|
||||
<a href="@{setupRepoLink actions}">
|
||||
enable
|
||||
$else
|
||||
<a href="@{setupRepoLink actions}">
|
||||
configure
|
|
@ -1,25 +0,0 @@
|
|||
<table .table .table-condensed>
|
||||
<tbody>
|
||||
$forall (num, name, actions) <- repolist
|
||||
<tr>
|
||||
<td>
|
||||
#{num}
|
||||
<td>
|
||||
#{name}
|
||||
<td>
|
||||
$if needsEnabled actions
|
||||
<a href="@{setupRepoLink actions}">
|
||||
<i .icon-warning-sign></i> not enabled
|
||||
$else
|
||||
<a href="@{syncToggleLink actions}">
|
||||
$if notSyncing actions
|
||||
<i .icon-pause></i> syncing paused
|
||||
$else
|
||||
<i .icon-refresh></i> syncing enabled
|
||||
<td>
|
||||
$if needsEnabled actions
|
||||
<a href="@{setupRepoLink actions}">
|
||||
enable
|
||||
$else
|
||||
<a href="@{setupRepoLink actions}">
|
||||
configure
|
Loading…
Add table
Add a link
Reference in a new issue