diff options
| author | Adam <Adam@anope.org> | 2013-09-03 18:51:18 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-09-03 18:51:18 -0400 |
| commit | 46913511677b169f32d55e4fc96a8c236169ddc7 (patch) | |
| tree | 170400c6eabe8e18d0a4809f89a46ff239dfc156 /modules/extra/webcpanel/templates/default | |
| parent | 404debf78925f86e94cfd71334433bc1eb423115 (diff) | |
Cleanup previous commit
Fix log messages from commands send through webpanel
Don't show OperServ section to non opers
Diffstat (limited to 'modules/extra/webcpanel/templates/default')
6 files changed, 14 insertions, 12 deletions
diff --git a/modules/extra/webcpanel/templates/default/chanserv/access.html b/modules/extra/webcpanel/templates/default/chanserv/access.html index 5364a4e94..09bc26d8d 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/access.html +++ b/modules/extra/webcpanel/templates/default/chanserv/access.html @@ -8,8 +8,7 @@ </div> {END FOR} - {IF EXISTS STOP} - {ELSE} + {IF EQ ACCESS_LIST YES} {IF EXISTS ACCESSES} <table id="tableNSAccess" class="table table-hover"> <thead> diff --git a/modules/extra/webcpanel/templates/default/chanserv/akick.html b/modules/extra/webcpanel/templates/default/chanserv/akick.html index 1483cd660..75cf894e2 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/akick.html +++ b/modules/extra/webcpanel/templates/default/chanserv/akick.html @@ -8,8 +8,7 @@ </div> {END FOR} - {IF EXISTS STOP} - {ELSE} + {IF EQ AKICK YES} {IF EXISTS MASKS} <table id="tableNSAccess" class="table table-hover"> <thead> diff --git a/modules/extra/webcpanel/templates/default/chanserv/chanlist.html b/modules/extra/webcpanel/templates/default/chanserv/chanlist.html index 50e3a60f6..4d386f6b0 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/chanlist.html +++ b/modules/extra/webcpanel/templates/default/chanserv/chanlist.html @@ -4,10 +4,10 @@ <div> <h3 style="margin: -12px 0 20px 0;"><small>Choose a channel to access it's Settings, Access or Akick pages.</small></h3> {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} - <td><a href="{PAGE}?channel={ECH}" class="btn btn-sm btn-primary {IF EQ ECH ESCAPED_CHANNEL}disabled{END IF}">{CH}</a></td> + <td><a href="{PAGE_NAME}?channel={ECH}" class="btn btn-sm btn-primary {IF EQ ECH ESCAPED_CHANNEL}disabled{END IF}">{CH}</a></td> {END FOR} </div> {ELSE} - <em>You don't have access in any channel</em><br> + <em>You don't have access in any channels.</em><br> {END IF} </div><br> diff --git a/modules/extra/webcpanel/templates/default/chanserv/modes.html b/modules/extra/webcpanel/templates/default/chanserv/modes.html index e441797dc..47c50e72a 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/modes.html +++ b/modules/extra/webcpanel/templates/default/chanserv/modes.html @@ -8,8 +8,7 @@ </div> {END FOR} - {IF EXISTS STOP} - {ELSE} + {IF EQ MODE YES} {FOR LM IN LISTMODES} <td><a href="/chanserv/modes?channel={ESCAPED_CHANNEL}&m={LM}" class="btn btn-sm btn-primary {IF EQ LM ESCAPED_MODE}disabled{END IF}">{LM}</a></td> {END FOR} diff --git a/modules/extra/webcpanel/templates/default/chanserv/set.html b/modules/extra/webcpanel/templates/default/chanserv/set.html index e8522cef9..0a26e3d74 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/set.html +++ b/modules/extra/webcpanel/templates/default/chanserv/set.html @@ -8,8 +8,7 @@ </div> {END FOR} - {IF EXISTS STOP} - {ELSE} + {IF EXISTS OKAY} {IF EXISTS CAN_SET}<form method="post" action="/chanserv/set?channel={CHANNEL_ESCAPED}">{END IF} <table id="tableInfo" class="table table-hover"> <tr> diff --git a/modules/extra/webcpanel/templates/default/header.html b/modules/extra/webcpanel/templates/default/header.html index 93d2c31fb..0ccf477c5 100644 --- a/modules/extra/webcpanel/templates/default/header.html +++ b/modules/extra/webcpanel/templates/default/header.html @@ -32,7 +32,13 @@ {IF EQ CATEGORY MemoServ}{IF EQ CATEGORY_NAME MemoServ}class="active"{END IF}{END IF} {IF EQ CATEGORY HostServ}{IF EQ CATEGORY_NAME HostServ}class="active"{END IF}{END IF} {IF EQ CATEGORY OperServ}{IF EQ CATEGORY_NAME OperServ}class="active"{END IF}{END IF}> - <a href="{CATEGORY_URL}">{CATEGORY_NAME}</a> + {IF EQ CATEGORY_NAME OperServ} + {IF EXISTS IS_OPER} + <a href="{CATEGORY_URL}">{CATEGORY_NAME}</a> + {END IF} + {ELSE} + <a href="{CATEGORY_URL}">{CATEGORY_NAME}</a> + {END IF} </li> {END FOR} </ul> @@ -55,4 +61,4 @@ </div> <div class="col-lg-9"> - <div class="panel panel-default">
\ No newline at end of file + <div class="panel panel-default"> |
