diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js index 1378237916..54d0140be2 100644 --- a/public/src/forum/admin/themes.js +++ b/public/src/forum/admin/themes.js @@ -7,7 +7,7 @@ var nodebb_admin = (function(nodebb_admin) { themes.render = function(bootswatch) { var themeFrag = document.createDocumentFragment(), themeEl = document.createElement('li'), - themeContainer = document.querySelector('#content .themes'), + themeContainer = document.querySelector('#bootstrap_themes'), numThemes = bootswatch.themes.length; for(var x=0;x' + + '
' + + '
' + + ' ' + + '' + + '
' + + '

' + themes[x].name + '

' + + '

' + themes[x].description + '

' + + '
' + + '
'; + themeFrag.appendChild(liEl.cloneNode(true)); + } + + instListEl.innerHTML = ''; + instListEl.appendChild(themeFrag); + }); + socket.emit('api:admin:themes.getInstalled'); })(); \ No newline at end of file diff --git a/public/templates/admin/themes.tpl b/public/templates/admin/themes.tpl index df8da9b1e1..fb4aaefe6a 100644 --- a/public/templates/admin/themes.tpl +++ b/public/templates/admin/themes.tpl @@ -1,12 +1,20 @@

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.

-