Indefero

Indefero Commit Details


Date:2011-06-04 16:15:58 (13 years 6 months ago)
Author:Thomas Keller
Branch:develop, feature.content-md5, feature.diff-whitespace, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.2, release-1.3
Commit:1b1b00a10c2cca8c0460b8731c445098e870da1b
Parents: 8693418d397836301946d974e0b8fca9f18790c9
Message: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.

Changes:

File differences

NEWS.mdtext
1717
1818
1919
20
21
22
2023
2124
2225
- Fix SSH public key parsing issues and improve the check for existing, uploaded keys (issue 679)
- Diff views now show empty context lines for git and hg again (issue 688)
- Let the SVN command line client not store the login credentials we give him as arguments
- The usher section in the forge administration no longer displays a bogus
server enty in case no monotone server is configured in the connected
usher instance
## Documentation
src/IDF/Scm/Monotone/Usher.php
4848
4949
5050
51
51
5252
5353
5454
......
7373
7474
7575
76
76
7777
7878
7979
if ($conn == 'none')
return array();
return preg_split('/[ ]/', $conn);
return preg_split('/[ ]/', $conn, -1, PREG_SPLIT_NO_EMPTY);
}
/**
if ($conn == 'none')
return array();
$single_conns = preg_split('/[ ]/', $conn);
$single_conns = preg_split('/[ ]/', $conn, -1, PREG_SPLIT_NO_EMPTY);
$ret = array();
foreach ($single_conns as $conn) {
preg_match('/\((\w+)\)([^:]+):(\d+)/', $conn, $matches);
src/IDF/templates/idf/gadmin/usher/connections.html
88
99
1010
11
12
13
14
15
1116
1217
1318
1419
1520
1621
22
1723
1824
1925
<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}
src/IDF/templates/idf/gadmin/usher/index.html
99
1010
1111
12
13
14
15
16
1217
1318
1419
......
3136
3237
3338
39
3440
3541
3642
<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>
{/if}
</tr>
{/foreach}
{/if}
</table>
{/block}

Archive Download the corresponding diff file

Page rendered in 0.08308s using 13 queries.