summaryrefslogtreecommitdiff
path: root/modules/webcpanel/templates/default/chanserv/chanlist.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webcpanel/templates/default/chanserv/chanlist.html')
-rw-r--r--modules/webcpanel/templates/default/chanserv/chanlist.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/webcpanel/templates/default/chanserv/chanlist.html b/modules/webcpanel/templates/default/chanserv/chanlist.html
new file mode 100644
index 000000000..8f00f02ac
--- /dev/null
+++ b/modules/webcpanel/templates/default/chanserv/chanlist.html
@@ -0,0 +1,17 @@
+<div class="panel-heading">Channels you have access in</div>
+<div class="panel-body">
+ {IF EXISTS CHANNEL_NAMES}
+ <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}
+ {IF EQ PAGE_NAME /chanserv/info}
+ <a href="set?channel={ECH}" class="btn btn-sm btn-primary {IF EQ ECH ESCAPED_CHANNEL}disabled{END IF}" style="margin-bottom: 4px;">{CH}</a>
+ {ELSE}
+ <a href="{PAGE_NAME}?channel={ECH}" class="btn btn-sm btn-primary {IF EQ ECH ESCAPED_CHANNEL}disabled{END IF}" style="margin-bottom: 4px;">{CH}</a>
+ {END IF}
+ {END FOR}
+ </div>
+ {ELSE}
+ <em>You don't have access in any channels.</em><br>
+ {END IF}
+</div>