From 37f7d1d08a38b0ca822136d55f45c4a557c2b1a2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 31 Jan 2014 13:17:28 -0500 Subject: [PATCH] resolved issue #913 --- public/src/forum/admin/themes.js | 4 +- public/templates/admin/themes.tpl | 67 ++++++++++++++++++++++--------- public/templates/header.tpl | 3 ++ src/webserver.js | 7 ++++ 4 files changed, 61 insertions(+), 20 deletions(-) diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js index a3685e127e..636edd2680 100644 --- a/public/src/forum/admin/themes.js +++ b/public/src/forum/admin/themes.js @@ -1,4 +1,4 @@ -define(function() { +define(['forum/admin/settings'], function(Settings) { var Themes = {}; Themes.init = function() { @@ -96,6 +96,8 @@ define(function() { instListEl.innerHTML = ''; instListEl.appendChild(themeFrag); }); + + Settings.prepare(); } Themes.render = function(bootswatch) { diff --git a/public/templates/admin/themes.tpl b/public/templates/admin/themes.tpl index 07b90b4bef..6fdf593aad 100644 --- a/public/templates/admin/themes.tpl +++ b/public/templates/admin/themes.tpl @@ -1,27 +1,56 @@

Themes


-

Custom Themes

-

- The following themes are currently installed in this NodeBB instance. -

- +
+ -

Bootswatch Themes

-

- NodeBB Themes are powered by Bootswatch, a repository containing themes built - with Bootstrap as a base theme. -

- +
+
+

Installed Themes

+

+ The following themes are currently installed in this NodeBB instance. +

+
    +
  • Checking for installed themes...
  • +
-

Revert to Default

-

- This will remove any custom theme applied to your NodeBB, and restore the base theme. -

+

Bootswatch Themes

+

+ NodeBB Themes are powered by Bootswatch, a repository containing themes built + with Bootstrap as a base theme. +

+
    +
  • Loading Themes
  • +
+ +

Revert to Default

+

+ This will remove any custom theme applied to your NodeBB, and restore the base theme. +

+
+
+

Custom CSS

+

+ You may also opt to enter your own CSS declarations here, which will be applied after all other styles. +

+ + +
+
+ +
+
+ + +
+
+