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

@@ -8,12 +8,18 @@
<th>{trans "address"}</th>
<th>{trans "port"}</th>
</tr>
{if count($connections) == 0}
<tr>
<td colspan="2" align="center">{trans 'No connections found.'}</td>
</tr>
{else}
{foreach $connections as $connection}
<tr>
<td>{$connection.address}</td>
<td>{$connection.port}</td>
</tr>
{/foreach}
{/if}
</table>
{/block}