diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-04 12:49:59 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-04 12:49:59 +0200 |
commit | e04e3174c1c38e7587df495c19082a864f2373b2 (patch) | |
tree | d4a53a9b6a1318808f841ccd74195b7ab470d949 /template | |
parent | b4e2151a91eb827bc90a44a906f7a7c40fde95c7 (diff) |
Only propose to add entry if relevant.
Diffstat (limited to 'template')
-rw-r--r-- | template/list-domains.html | 2 | ||||
-rw-r--r-- | template/list-locals.html | 31 |
2 files changed, 24 insertions, 9 deletions
diff --git a/template/list-domains.html b/template/list-domains.html index b933167..f57d448 100644 --- a/template/list-domains.html +++ b/template/list-domains.html @@ -19,7 +19,7 @@ </div> <hr/> - <h1>Manage domains<span class="add">[<a href="<TMPL_VAR NAME=URL>/?a=AddDomain">add domain</a>]<span></h1> + <h1>Manage domains<span class="add">[<a href="<TMPL_VAR NAME=URL>/?a=AddDomain">add</a>]<span></h1> <table class="list"> <thead> 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">✔</span><TMPL_ELSE><span class="inactive">✘</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">—</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> |