From 404debf78925f86e94cfd71334433bc1eb423115 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Tue, 3 Sep 2013 04:37:09 +0200 Subject: updated the chanserv section in webcpanel --- .../templates/default/chanserv/access.html | 112 +++++++++++---------- .../templates/default/chanserv/akick.html | 86 ++++++++-------- .../templates/default/chanserv/chanlist.html | 13 +++ .../webcpanel/templates/default/chanserv/drop.html | 6 +- .../webcpanel/templates/default/chanserv/main.html | 16 +-- .../templates/default/chanserv/modes.html | 57 +++++++++++ .../webcpanel/templates/default/chanserv/set.html | 10 +- .../extra/webcpanel/templates/default/header.html | 1 + 8 files changed, 186 insertions(+), 115 deletions(-) create mode 100644 modules/extra/webcpanel/templates/default/chanserv/chanlist.html create mode 100644 modules/extra/webcpanel/templates/default/chanserv/modes.html (limited to 'modules/extra/webcpanel/templates/default') diff --git a/modules/extra/webcpanel/templates/default/chanserv/access.html b/modules/extra/webcpanel/templates/default/chanserv/access.html index 5b02c068a..5364a4e94 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/access.html +++ b/modules/extra/webcpanel/templates/default/chanserv/access.html @@ -1,4 +1,5 @@ {INCLUDE header.html} +{INCLUDE chanserv/chanlist.html}
Access List
{FOR M IN MESSAGES} @@ -7,64 +8,71 @@
{END FOR} - {IF EXISTS ACCESSES} - - - - - - - - - - - {FOR MASK,ACCESS,CREATOR,ACCESS_CHANGE IN MASKS,ACCESSES,CREATORS,ACCESS_CHANGES} - - - - - {IF EQ ACCESS_CHANGE YES} - - {END IF} - - {END FOR} - -
MaskAccessCreator
{MASK}{ACCESS}{CREATOR}Delete
+ {IF EXISTS STOP} {ELSE} - Access list is empty. - {END IF} + {IF EXISTS ACCESSES} + + + + + + + + + + + {FOR MASK,ACCESS,CREATOR IN MASKS,ACCESSES,CREATORS} + + + + + {IF EQ ACCESS_CHANGE YES} + + {ELSE} + + {END IF} + + {END FOR} + +
MaskAccessCreator
{MASK}{ACCESS}{CREATOR}Delete
+ {ELSE} + Access list is empty. + {END IF} -
+
-

Add an access entry

-
-
- -
- + {IF EQ ACCESS_CHANGE YES} +

Add an access entry

+ +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
-
- +
+
+ +
-
- + + {END IF} + {END IF}
{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/akick.html b/modules/extra/webcpanel/templates/default/chanserv/akick.html index 3b6a2f190..1483cd660 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/akick.html +++ b/modules/extra/webcpanel/templates/default/chanserv/akick.html @@ -1,4 +1,5 @@ {INCLUDE header.html} +{INCLUDE chanserv/chanlist.html}
Akick List
{FOR M IN MESSAGES} @@ -7,52 +8,55 @@
{END FOR} - {IF EXISTS MASKS} - - - - - - - - - - - {FOR MASK,REASON,CREATOR IN MASKS,REASONS,CREATORS} - - - - - - - {END FOR} - -
MaskReasonCreator
{MASK}{REASON}{CREATOR}Delete
+ {IF EXISTS STOP} {ELSE} - Akick list is empty. - {END IF} + {IF EXISTS MASKS} + + + + + + + + + + + {FOR MASK,REASON,CREATOR IN MASKS,REASONS,CREATORS} + + + + + + + {END FOR} + +
MaskReasonCreator
{MASK}{REASON}{CREATOR}Delete
+ {ELSE} + Akick list is empty. + {END IF} -
+
-

Add an akick entry

-
-
- -
- +

Add an akick entry

+ +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
-
- +
+
+ +
-
- + + {END IF}
{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/chanlist.html b/modules/extra/webcpanel/templates/default/chanserv/chanlist.html new file mode 100644 index 000000000..50e3a60f6 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/chanserv/chanlist.html @@ -0,0 +1,13 @@ + +
+ {IF EXISTS CHANNEL_NAMES} +
+

Choose a channel to access it's Settings, Access or Akick pages.

+ {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} + {CH} + {END FOR} +
+ {ELSE} + You don't have access in any channel
+ {END IF} +

diff --git a/modules/extra/webcpanel/templates/default/chanserv/drop.html b/modules/extra/webcpanel/templates/default/chanserv/drop.html index 1b7e788d0..23cb42a1e 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/drop.html +++ b/modules/extra/webcpanel/templates/default/chanserv/drop.html @@ -1,4 +1,5 @@ {INCLUDE header.html} +{INCLUDE chanserv/chanlist.html}
Channels you can drop
{FOR M IN MESSAGES} @@ -7,11 +8,6 @@
{END FOR} -
- {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} - {CH}
- {END FOR} -
{IF EXISTS CHANNEL_DROP}

Drop Channel {CHANNEL_DROP}?

diff --git a/modules/extra/webcpanel/templates/default/chanserv/main.html b/modules/extra/webcpanel/templates/default/chanserv/main.html index 8b88970e8..e77626f31 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/main.html +++ b/modules/extra/webcpanel/templates/default/chanserv/main.html @@ -1,17 +1,3 @@ {INCLUDE header.html} -
Channels you have access in
-
- {IF EXISTS CHANNEL_NAMES} -
-

Choose a channel to access it's Settings, Access or Akick pages.

-
    - {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} -
  • {CH}
  • - {END FOR} -
-
- {ELSE} - You don't have access in any channel
- {END IF} -
+{INCLUDE chanserv/chanlist.html} {INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/modes.html b/modules/extra/webcpanel/templates/default/chanserv/modes.html new file mode 100644 index 000000000..e441797dc --- /dev/null +++ b/modules/extra/webcpanel/templates/default/chanserv/modes.html @@ -0,0 +1,57 @@ +{INCLUDE header.html} +{INCLUDE chanserv/chanlist.html} +
Channel Mode List
+
+ {FOR M IN MESSAGES} +
+ {M}
+
+ {END FOR} + + {IF EXISTS STOP} + {ELSE} + {FOR LM IN LISTMODES} + {LM} + {END FOR} +
+ + {IF EXISTS MASKS} + + + + + + + + + {FOR MASK IN MASKS} + + + + + {END FOR} + +
Mask
{MASK}Delete
+ {ELSE} + Nothing to display. + {END IF} + +
+ +

Set a new mode

+
+
+ +
+ +
+
+
+
+ +
+
+
+ {END IF} +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/set.html b/modules/extra/webcpanel/templates/default/chanserv/set.html index 0c2596dc6..e8522cef9 100644 --- a/modules/extra/webcpanel/templates/default/chanserv/set.html +++ b/modules/extra/webcpanel/templates/default/chanserv/set.html @@ -1,4 +1,5 @@ {INCLUDE header.html} +{INCLUDE chanserv/chanlist.html}
Channel Information
{FOR M IN MESSAGES} @@ -7,7 +8,9 @@
{END FOR} -
+ {IF EXISTS STOP} + {ELSE} + {IF EXISTS CAN_SET}{END IF} @@ -43,6 +46,7 @@ {END IF} + {IF EXISTS CAN_SET} @@ -75,7 +79,9 @@ + {END IF}
Channel Name{LAST_TOPIC_SETTER}
Keep topic
-
+ {IF EXISTS CAN_SET}{END IF} + {END IF}
{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/header.html b/modules/extra/webcpanel/templates/default/header.html index 9d9710c30..93d2c31fb 100644 --- a/modules/extra/webcpanel/templates/default/header.html +++ b/modules/extra/webcpanel/templates/default/header.html @@ -17,6 +17,7 @@ + {TITLE} -- cgit