From e3d5140dcc936ff411c438b7e3997104cb5f085a Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Sep 2012 18:54:51 -0400 Subject: Added a web panel module + a default template --- .../templates/default/chanserv/access.html | 52 +++++++++++ .../templates/default/chanserv/akick.html | 42 +++++++++ .../webcpanel/templates/default/chanserv/main.html | 6 ++ .../webcpanel/templates/default/chanserv/set.html | 100 +++++++++++++++++++++ .../extra/webcpanel/templates/default/confirm.html | 30 +++++++ .../extra/webcpanel/templates/default/favicon.ico | Bin 0 -> 3774 bytes .../extra/webcpanel/templates/default/footer.html | 7 ++ .../extra/webcpanel/templates/default/header.html | 24 +++++ .../extra/webcpanel/templates/default/login.html | 47 ++++++++++ modules/extra/webcpanel/templates/default/logo.png | Bin 0 -> 16385 bytes .../templates/default/memoserv/memos.html | 50 +++++++++++ .../templates/default/nickserv/access.html | 24 +++++ .../templates/default/nickserv/alist.html | 16 ++++ .../webcpanel/templates/default/nickserv/cert.html | 19 ++++ .../webcpanel/templates/default/nickserv/info.html | 82 +++++++++++++++++ .../webcpanel/templates/default/register.html | 51 +++++++++++ .../extra/webcpanel/templates/default/style.css | 97 ++++++++++++++++++++ 17 files changed, 647 insertions(+) create mode 100644 modules/extra/webcpanel/templates/default/chanserv/access.html create mode 100644 modules/extra/webcpanel/templates/default/chanserv/akick.html create mode 100644 modules/extra/webcpanel/templates/default/chanserv/main.html create mode 100644 modules/extra/webcpanel/templates/default/chanserv/set.html create mode 100644 modules/extra/webcpanel/templates/default/confirm.html create mode 100644 modules/extra/webcpanel/templates/default/favicon.ico create mode 100644 modules/extra/webcpanel/templates/default/footer.html create mode 100644 modules/extra/webcpanel/templates/default/header.html create mode 100644 modules/extra/webcpanel/templates/default/login.html create mode 100644 modules/extra/webcpanel/templates/default/logo.png create mode 100644 modules/extra/webcpanel/templates/default/memoserv/memos.html create mode 100644 modules/extra/webcpanel/templates/default/nickserv/access.html create mode 100644 modules/extra/webcpanel/templates/default/nickserv/alist.html create mode 100644 modules/extra/webcpanel/templates/default/nickserv/cert.html create mode 100644 modules/extra/webcpanel/templates/default/nickserv/info.html create mode 100644 modules/extra/webcpanel/templates/default/register.html create mode 100644 modules/extra/webcpanel/templates/default/style.css (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 new file mode 100644 index 000000000..13c0ba82b --- /dev/null +++ b/modules/extra/webcpanel/templates/default/chanserv/access.html @@ -0,0 +1,52 @@ +{INCLUDE header.html} + {FOR M IN MESSAGES} + {M}
+ {END FOR} + {IF EXISTS ACCESSES} + Access List
+ + + + + + + {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
+ {ELSE} + Access list is empty. + {END IF} + +

+ + Add an access entry
+
+ + + + + + + + + + + +
MaskAccessProvider
+ +
+ +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/akick.html b/modules/extra/webcpanel/templates/default/chanserv/akick.html new file mode 100644 index 000000000..23c1c1efd --- /dev/null +++ b/modules/extra/webcpanel/templates/default/chanserv/akick.html @@ -0,0 +1,42 @@ +{INCLUDE header.html} + {FOR M IN MESSAGES} + {M}
+ {END FOR} + {IF EXISTS MASKS} + Akick List
+ + + + + + + {FOR MASK,CREATOR,REASON IN MASKS,CREATORS,REASONS} + + + + + + + {END FOR} +
MaskCreatorReason
{MASK}{CREATOR}{REASON}Delete
+ {ELSE} + Akick list is empty. + {END IF} + +

+ + Add an akick entry
+
+ + + + + + + + + +
MaskReason
+ +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/main.html b/modules/extra/webcpanel/templates/default/chanserv/main.html new file mode 100644 index 000000000..99fec7d75 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/chanserv/main.html @@ -0,0 +1,6 @@ +{INCLUDE header.html} + Channels you have access in:
+ {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} + {CH}
+ {END FOR} +{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/chanserv/set.html b/modules/extra/webcpanel/templates/default/chanserv/set.html new file mode 100644 index 000000000..ec2a33929 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/chanserv/set.html @@ -0,0 +1,100 @@ +{INCLUDE header.html} + {FOR M IN MESSAGES} + {M}
+ {END FOR} +
+ + + + + + {IF EXISTS FOUNDER} + + + + + {END IF} + {IF EXISTS SUCCESSOR} + + + + + {END IF} + + + + + + + + + {IF EXISTS LAST_TOPIC} + + + + + + + + + {END IF} + + + {IF EXISTS KEEPTOPIC} + + {ELSE} + + {END IF} + + + + {IF EXISTS PEACE} + + {ELSE} + + {END IF} + + + + {IF EXISTS PRIVATE} + + {ELSE} + + {END IF} + + + + {IF EXISTS RESTRICTED} + + {ELSE} + + {END IF} + + + + {IF EXISTS SECURE} + + {ELSE} + + {END IF} + + + + {IF EXISTS SECUREOPS} + + {ELSE} + + {END IF} + + + + {IF EXISTS TOPICLOCK} + + {ELSE} + + {END IF} + +
Channel Name{CHANNEL}
Founder{FOUNDER}
Succsesor{SUCCESSOR}
Time registered{TIME_REGISTERED
Last used{LAST_USED}
Last topic{LAST_TOPIC}
Set by{LAST_TOPIC_SETTER}
Keep topic
Peace
Private
Restricted
Secure
Secure Ops
Topic Lock
+ +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/confirm.html b/modules/extra/webcpanel/templates/default/confirm.html new file mode 100644 index 000000000..918ccd971 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/confirm.html @@ -0,0 +1,30 @@ + + + + + {TITLE} + + +
+
+ +
+ + + + +
+
+ +
+ {FOR M IN MESSAGES} + {M}
+ {END FOR} +
+
+
+ + + diff --git a/modules/extra/webcpanel/templates/default/favicon.ico b/modules/extra/webcpanel/templates/default/favicon.ico new file mode 100644 index 000000000..be735614a Binary files /dev/null and b/modules/extra/webcpanel/templates/default/favicon.ico differ diff --git a/modules/extra/webcpanel/templates/default/footer.html b/modules/extra/webcpanel/templates/default/footer.html new file mode 100644 index 000000000..65d23402a --- /dev/null +++ b/modules/extra/webcpanel/templates/default/footer.html @@ -0,0 +1,7 @@ + + + + + diff --git a/modules/extra/webcpanel/templates/default/header.html b/modules/extra/webcpanel/templates/default/header.html new file mode 100644 index 000000000..38f367acc --- /dev/null +++ b/modules/extra/webcpanel/templates/default/header.html @@ -0,0 +1,24 @@ + + + + + {TITLE} + + +
+
+
    + {FOR CATEGORY_URL,CATEGORY_NAME IN CATEGORY_URLS,CATEGORY_NAMES} +
  • {CATEGORY_NAME}
  • + {END FOR} +
+
Logged in as {ACCOUNT} (Logout)
+
+ +
diff --git a/modules/extra/webcpanel/templates/default/login.html b/modules/extra/webcpanel/templates/default/login.html new file mode 100644 index 000000000..7aa54aa9c --- /dev/null +++ b/modules/extra/webcpanel/templates/default/login.html @@ -0,0 +1,47 @@ + + + + + {TITLE} + + +
+
+ +
+ + + + +
+
+ +
+

Login

+ {INVALID_LOGIN}
+ Login to continue. +
+
+ + + + + + + + + + + + + +
Username:
Password:
+
+
+
+
+ + + diff --git a/modules/extra/webcpanel/templates/default/logo.png b/modules/extra/webcpanel/templates/default/logo.png new file mode 100644 index 000000000..1ab5546c6 Binary files /dev/null and b/modules/extra/webcpanel/templates/default/logo.png differ diff --git a/modules/extra/webcpanel/templates/default/memoserv/memos.html b/modules/extra/webcpanel/templates/default/memoserv/memos.html new file mode 100644 index 000000000..559efd35b --- /dev/null +++ b/modules/extra/webcpanel/templates/default/memoserv/memos.html @@ -0,0 +1,50 @@ +{INCLUDE header.html} + Channels you have access in:
+ {FOR CH,ECH IN CHANNEL_NAMES,ESCAPED_CHANNEL_NAMES} + {CH} + {END FOR} +

+ {FOR M IN MESSAGES} + {M}
+ {END FOR} +
+ {IF EXISTS NUMBER} + Memos List: + + + + + + + {FOR I,S,T,TXT,U IN NUMBER,SENDER,TIME,TEXT,UNREAD} + + + + + {IF EQ U YES} + + {ELSE} + + {END IF} + + + + + + + + {END FOR} +
NumberSenderTime/Message
{I}{S}{T}Mark as ReadMark as UnreadDelete
{TXT}
+ {ELSE} + No memos to show. + {END IF} + +

+ + Send a new Memo +
+ Receiver: + Message: + +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/nickserv/access.html b/modules/extra/webcpanel/templates/default/nickserv/access.html new file mode 100644 index 000000000..9948c3694 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/nickserv/access.html @@ -0,0 +1,24 @@ +{INCLUDE header.html} + {FOR M IN MESSAGES} + {M}
+ {END FOR} + {IF EXISTS ACCESS} + Your access list: + + {FOR A IN ACCESS} + + + + + {END FOR} +
{A}Delete
+ {ELSE} + Your access list is empty. + {END IF} +

+ Add an access entry: +
+ + +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/nickserv/alist.html b/modules/extra/webcpanel/templates/default/nickserv/alist.html new file mode 100644 index 000000000..e36143458 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/nickserv/alist.html @@ -0,0 +1,16 @@ +{INCLUDE header.html} + + + + + + + {FOR N,C,A IN NUMBERS,CHANNELS,ACCESSES} + + + + + + {END FOR} +
NumberChannelAccess
{N}{C}{A}
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/nickserv/cert.html b/modules/extra/webcpanel/templates/default/nickserv/cert.html new file mode 100644 index 000000000..31f12b883 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/nickserv/cert.html @@ -0,0 +1,19 @@ +{INCLUDE header.html} + {FOR M IN MESSAGES} + {M}
+ {END FOR} + Your certificate finrgerprints: + + {FOR CERT IN CERTS} + + + + + {END FOR} +
{CERT}Delete
+ Add an certificate fingerprint +
+ + +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/nickserv/info.html b/modules/extra/webcpanel/templates/default/nickserv/info.html new file mode 100644 index 000000000..1dd051364 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/nickserv/info.html @@ -0,0 +1,82 @@ +{INCLUDE header.html} + {FOR M IN ERRORS} + {M}
+ {END FOR} + {FOR M IN MESSAGES} + {M}
+ {END FOR} + Your account information: +
+ + + + + + {IF EXISTS EMAIL} + + + + + {END IF} + + + + + {IF EXISTS VHOST} + + + + + {END IF} + + + + + + + {IF EXISTS AUTOOP} + + {ELSE} + + {END IF} + + + + {IF EXISTS PRIVATE} + + {ELSE} + + {END IF} + + + + {IF EXISTS SECURE} + + {ELSE} + + {END IF} + + + + + +
Account:{DISPLAY}
EMail{EMAIL}
Time registered{TIME_REGISTERED}
Vhost{VHOST}
Greet
Auto op
Private
Secure
Kill
+ +
+{INCLUDE footer.html} diff --git a/modules/extra/webcpanel/templates/default/register.html b/modules/extra/webcpanel/templates/default/register.html new file mode 100644 index 000000000..8f6a5296a --- /dev/null +++ b/modules/extra/webcpanel/templates/default/register.html @@ -0,0 +1,51 @@ + + + + + {TITLE} + + +
+
+ +
+ + + + +
+
+ + {MESSAGES} +
+

Register

+
+ Fill out the following form to register. +
+ + + + + + + + + + + + + + + + + +
Username:
Password:
Email
+
+
+
+
+ + + diff --git a/modules/extra/webcpanel/templates/default/style.css b/modules/extra/webcpanel/templates/default/style.css new file mode 100644 index 000000000..78c044995 --- /dev/null +++ b/modules/extra/webcpanel/templates/default/style.css @@ -0,0 +1,97 @@ +html { +font-family: 'Cabin', Helvetica, Arial, sans-serif; +} +body { + overflow:hidden; +} +.master { + margin-left:0px; + margin-right:0px; + height:100%; + background: #FFF; + border-width: 1px; + border-style: solid; + overflow: hidden; +} +.header { + height: 33px; + padding-left: 5px; + width: auto; + background: #EEE; + border-width: 1px; + border-bottom-style: solid; +} +.sidebar { + width: 185px; + background: #EEE; + height: 500px; + border-width: 1px; + border-right-style: solid; + padding-top:15px; + padding-left:15px; +} + +.loggedinas { + right:15px; + top:15px; + position:absolute; +} + +#button { + padding: 0; + height:30px; + margin: 0px; + padding-bottom: 2px; +} +#button li { + display: inline; +} + +#button li a { + font-family: Arial; + font-size:11px; + text-decoration: none; + float:left; + padding: 10px; + background-color: #EEE; + height:13px; + color: #000; +} +#button li a:hover { + background-color: #A8BEE3; + padding-bottom:10px; +} +#a.current { + color:navy; +} + +.content { + left:220px; + top:50px; + position:absolute; +} + +.footer { + margin-left:auto; + margin-right:auto; + text-align:center; + height: 30px; + width:100%; + background: #FFF; + overflow: hidden; +} + +.sidenav { + list-style-type: none; + background: #EEE +} + +.sidenav a { + color:black; + text-decoration:none; +} +.sidenav a:hover{ + color:black; + background:#FFF; + text-decoration:underline; +} -- cgit