The server list no longer renders a bogus server entry in case no

monotone server has been configured yet in the connected usher instance.
Also display a short info text if the server or connection list for
a running monotone server is empty.
This commit is contained in:
Thomas Keller
2011-06-04 23:15:58 +02:00
parent 8693418d39
commit 1b1b00a10c
4 changed files with 17 additions and 2 deletions

View File

@@ -9,6 +9,11 @@
<th>{trans "status"}</th>
<th>{trans "action"}</th>
</tr>
{if count($servers) == 0}
<tr>
<td colspan="3" align="center">{trans 'No monotone servers configured.'}</td>
</tr>
{else}
{foreach $servers as $server}
<tr>
<td>{$server.name}</td>
@@ -31,6 +36,7 @@
{/if}
</tr>
{/foreach}
{/if}
</table>
{/block}