mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Prefix links in templates with URIPrefix and add the input field to the Listener editor. The URIPrefix is provided as a top-level template variable. All URIs have been changed to have the prefix prepended.
40 lines
1.2 KiB
Cheetah
40 lines
1.2 KiB
Cheetah
<? INC Header.tmpl ?>
|
|
|
|
<?IF !UserLoop?>
|
|
<div class="textsection">
|
|
There are no users defined. Click <a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>adduser">here</a> if you would like to add one.
|
|
</div>
|
|
<?ELSE?>
|
|
<div class="toptable">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>Action</td>
|
|
<td>Username</td>
|
|
<td>Networks</td>
|
|
<td>Clients</td>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?LOOP UserLoop SORTASC=Username ?>
|
|
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
|
|
<td>
|
|
<span class="nowrap">
|
|
[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
|
|
[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>adduser?clone=<? VAR Username ESC=URL ?>" alt="Clone <? VAR Username ESC=URL ?>">Clone</a>]
|
|
<? IF !IsSelf ?>[<a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>deluser?user=<?VAR Username ESC=URL?>">Delete</a>]<? ENDIF ?>
|
|
</span>
|
|
</td>
|
|
<td><? VAR Username ?></td>
|
|
<td><? VAR Networks ?></td>
|
|
<td><? VAR Clients ?></td>
|
|
</tr>
|
|
<?ENDLOOP?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?ENDIF?>
|
|
|
|
<? INC Footer.tmpl ?>
|