From 30624d4ad85473bd88b3d353e23daa2673e96f4c Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 9 Jan 2014 17:51:26 -0500 Subject: [PATCH] tabbified the admin settings page --- public/src/forum/admin/settings.js | 6 + public/templates/admin/settings.tpl | 249 +++++++++++++++------------- 2 files changed, 136 insertions(+), 119 deletions(-) diff --git a/public/src/forum/admin/settings.js b/public/src/forum/admin/settings.js index acb74827f4..95cc3c1b9b 100644 --- a/public/src/forum/admin/settings.js +++ b/public/src/forum/admin/settings.js @@ -89,6 +89,12 @@ define(['uploader'], function(uploader) { uploader.hideAlerts(); }); + + $('#settings-tab a').click(function (e) { + e.preventDefault(); + $(this).tab('show'); + return false; + }); }; Settings.remove = function(key) { diff --git a/public/templates/admin/settings.tpl b/public/templates/admin/settings.tpl index b5fef202c8..8ddd896da9 100644 --- a/public/templates/admin/settings.tpl +++ b/public/templates/admin/settings.tpl @@ -1,137 +1,148 @@

Settings


-

General Settings

-
-
- -
- -
- -
- -
-
- -
- -
-
-
-
-
-
+ -
-

Privilege Thresholds

-
-

Use privilege thresholds to manage how much reputation a user must gain to receive moderator access.


- Manage Thread

- Manage Content

-
- +
+
+
+ + +
+ +
+ +
+ +
+

+ +
+
+
+
+
- -
-

Email Settings

-
-
-

- Please ensure that you have installed a third-party emailer (e.g. PostageApp, Mailgun, Mandrill, SendGrid, etc), otherwise emails will not be sent by NodeBB -

-

- Email Address
- The following email address refers to the email that the recipient will see in the "From" and "Reply To" fields. -

-
-
+
+ +
+

Use privilege thresholds to manage how much reputation a user must gain to receive moderator access.


+ Manage Thread

+ Manage Content

+
+ +
+
+
- - -
-

Profile Settings

-
-
- -
+
+ +
+
+

+ Please ensure that you have installed a third-party emailer (e.g. PostageApp, Mailgun, Mandrill, SendGrid, etc), otherwise emails will not be sent by NodeBB +

+

+ Email Address
+ The following email address refers to the email that the recipient will see in the "From" and "Reply To" fields. +

+
+
+
+
- -
-

User Settings

-
-
- -
-
- -
- Minimum Username Length
-
- Maximum Username Length
-
- Minimum Password Length
-
- Maximum Signature Length
-
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+ Minimum Username Length
+
+ Maximum Username Length
+
+ Minimum Password Length
+
+ Maximum Signature Length
+
+
+
- -
-

Post Settings

-
- Post Delay

- Minimum Title Length

- Maximum Title Length

- Minimum Post Length

- Chat Messages To Display

-
- -
-
- -
-
- -
-
- -
-
- -
- Maximum File Size

+
+ +
+ Post Delay

+ Minimum Title Length

+ Maximum Title Length

+ Minimum Post Length

+ Chat Messages To Display

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ Maximum File Size

+
+
- -
-

Web Crawler Settings

-
- Custom Robots.txt Leave blank for default
- +
+ +
+ Custom Robots.txt Leave blank for default
+ +
+
- +
+