aboutsummaryrefslogtreecommitdiffstats
path: root/template/list-locals.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/list-locals.html')
-rw-r--r--template/list-locals.html31
1 files changed, 23 insertions, 8 deletions
diff --git a/template/list-locals.html b/template/list-locals.html
index 76b86ca..60d4581 100644
--- a/template/list-locals.html
+++ b/template/list-locals.html
@@ -27,7 +27,10 @@
<p>Domain status: <b><TMPL_IF NAME=ISACTIVE><span class="active">Active</span><TMPL_ELSE><span class="inactive">Inactive</span></TMPL_IF></b><p>
- <h3>Mailboxes<span class="add">[<a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=AddUser">add</a>]</span></h3>
+ <TMPL_IF NAME=LISTMAILBOXES>
+ <h3>Mailboxes<TMPL_IF NAME=CANADDMAILBOX
+ ><span class="add">[<a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=AddUser">add</a>]</span
+ ></TMPL_IF></h3>
<table class="list">
<thead>
@@ -53,11 +56,15 @@
</TMPL_LOOP>
</tbody>
</table>
+ </TMPL_IF>
<br/>
- <h3>Aliases<span class="add">[<a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=Addlias">add</a>]</span></h3>
+ <TMPL_IF NAME=LISTALIASES>
+ <h3>Alias<TMPL_IF NAME=CANADDALIAS
+ ><span class="add">[<a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=AddAlias">add</a>]</span
+ ></TMPL_IF></h3>
<table class="list">
<thead>
@@ -82,19 +89,26 @@
</tr>
</TMPL_LOOP>
<TMPL_IF NAME=CATCHALLS>
- <td>*</td>
- <td>Catch-all alias(es) for domain <tt><TMPL_VAR NAME=DOMAIN></tt>.</td>
- <td><TMPL_IF NAME=ISACTIVE><span class="active">&#x2714;</span><TMPL_ELSE><span class="inactive">&#x2718;</span></TMPL_IF></td>
- <td></td>
- <td><TMPL_LOOP NAME=CATCHALLS><tt><TMPL_VAR NAME=CATCHALL></tt><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>
+ <TMPL_IF NAME=CAODD><tr class="odd"><TMPL_ELSE><tr></TMPL_IF>
+ <td>*</td>
+ <td>Catch-all alias(es) for domain <tt><TMPL_VAR NAME=DOMAIN></tt>.</td>
+ <td><span class="dunno">&#x2014;</span></td>
+ <td><TMPL_UNLESS NAME=OWNERS><span class="none">(none)</span></TMPL_UNLESS>
+ <TMPL_LOOP NAME=OWNERS><tt><TMPL_VAR NAME=OWNER></tt><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>
+ <td><TMPL_LOOP NAME=CATCHALLS><tt><TMPL_VAR NAME=CATCHALL></tt><TMPL_UNLESS NAME=__last__>, </TMPL_UNLESS></TMPL_LOOP></td>
+ <tr>
</TMPL_IF>
</tbody>
</table>
+ </TMPL_IF>
<br/>
- <h3>Lists<span class="add">[<a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=Addlist">add</a>]</span></h3>
+ <TMPL_IF NAME=LISTLISTS>
+ <h3>Lists<TMPL_IF NAME=CANADDLIST
+ ><span class="add">[<a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/?a=AddList">add</a>]</span
+ ></TMPL_IF></h3>
<table class="list">
<thead>
@@ -119,6 +133,7 @@
</TMPL_LOOP>
</tbody>
</table>
+ </TMPL_IF>
</body>