From 55d1625ab2fa6451c7da7fbfb8a75180c0f376c2 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 4 Nov 2017 19:19:12 +0200 Subject: [PATCH] Split connect and settings into templates --- client/index.html | 287 +----------------------------- client/views/index.js | 2 + client/views/windows/connect.tpl | 88 +++++++++ client/views/windows/settings.tpl | 193 ++++++++++++++++++++ 4 files changed, 285 insertions(+), 285 deletions(-) create mode 100644 client/views/windows/connect.tpl create mode 100644 client/views/windows/settings.tpl diff --git a/client/index.html b/client/index.html index 1c4006cf..2c6b7b78 100644 --- a/client/index.html +++ b/client/index.html @@ -80,291 +80,8 @@
-
-
- -
-
-
-
-

- {{#if public}}The Lounge - {{/if}} - Connect - {{#unless displayNetwork}} - {{#if lockNetwork}} - to {{defaults.name}} - {{/if}} - {{/unless}} -

-
- {{#if displayNetwork}} -
-
-

Network settings

-
-
- -
-
- -
-
- -
-
- -
-
-
- -
-
-
-
- -
-
- -
-
- -
-
-
- {{/if}} -
-

User preferences

-
-
- -
-
- -
- {{#unless useHexIp}} -
- -
-
- -
- {{/unless}} -
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
- -
-
-

Settings

- -
-
-

Messages

-
-
- -
-
- -
-
-

- Status messages - - - -

-
-
- - - -
-
-

Visual Aids

-
-
- - -
-
-

Theme

-
-
- - -
- {{#if prefetch}} -
-

Link previews

-
-
- -
-
- -
- {{/if}} - {{#unless public}} -
-

Push Notifications

-
-
- -
- Warning: - Push notifications are only supported over HTTPS connections. -
-
- Warning: - Push notifications are not supported by your browser. -
-
- {{/unless}} -
-

Browser Notifications

-
-
- -
-
- -
-
-
- -
-
- -
- -
- -
- -
- - {{#unless public}} - {{#unless ldap.enable}} -
-
-
-

Change password

-
-
- - -
-
- - -
-
- - -
- -
- -
-
-
- {{/unless}} - {{/unless}} -
-

Custom Stylesheet

-
-
- -
-
- - {{#unless public}} -
-

Sessions

- -

Current session

-
- -

Other sessions

-
-
- {{/unless}} -
-
+
+
diff --git a/client/views/index.js b/client/views/index.js index a459ded1..55a8266e 100644 --- a/client/views/index.js +++ b/client/views/index.js @@ -22,6 +22,8 @@ module.exports = { windows: { sign_in: require("./windows/sign_in.tpl"), + settings: require("./windows/settings.tpl"), + connect: require("./windows/connect.tpl"), }, chan: require("./chan.tpl"), diff --git a/client/views/windows/connect.tpl b/client/views/windows/connect.tpl new file mode 100644 index 00000000..b52244d8 --- /dev/null +++ b/client/views/windows/connect.tpl @@ -0,0 +1,88 @@ +
+ +
+
+
+
+

+ {{#if public}}The Lounge - {{/if}} + Connect + {{#unless displayNetwork}} + {{#if lockNetwork}} + to {{defaults.name}} + {{/if}} + {{/unless}} +

+
+ {{#if displayNetwork}} +
+
+

Network settings

+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+ {{/if}} +
+

User preferences

+
+
+ +
+
+ +
+ {{#unless useHexIp}} +
+ +
+
+ +
+ {{/unless}} +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
diff --git a/client/views/windows/settings.tpl b/client/views/windows/settings.tpl new file mode 100644 index 00000000..ec314752 --- /dev/null +++ b/client/views/windows/settings.tpl @@ -0,0 +1,193 @@ +
+ +
+
+

Settings

+ +
+
+

Messages

+
+
+ +
+
+ +
+
+

+ Status messages + + + +

+
+
+ + + +
+
+

Visual Aids

+
+
+ + +
+
+

Theme

+
+
+ + +
+ {{#if prefetch}} +
+

Link previews

+
+
+ +
+
+ +
+ {{/if}} + {{#unless public}} +
+

Push Notifications

+
+
+ +
+ Warning: + Push notifications are only supported over HTTPS connections. +
+
+ Warning: + Push notifications are not supported by your browser. +
+
+ {{/unless}} +
+

Browser Notifications

+
+
+ +
+
+ +
+
+
+ +
+
+ +
+ +
+ +
+ +
+ + {{#unless public}} + {{#unless ldap.enable}} +
+
+
+

Change password

+
+
+ + +
+
+ + +
+
+ + +
+ +
+ +
+
+
+ {{/unless}} + {{/unless}} +
+

Custom Stylesheet

+
+
+ +
+
+ + {{#unless public}} +
+

Sessions

+ +

Current session

+
+ +

Other sessions

+
+
+ {{/unless}} +