Skip to content

Node.js based forum software built for the modern web

fixes #2665

Julian Lam6a69fcd4cd9e
diff --git a/public/src/admin/appearance/skins.js b/public/src/admin/appearance/skins.js
index 8fd9208c7e..df21cb5b0a 100644
--- a/public/src/admin/appearance/skins.js
+++ b/public/src/admin/appearance/skins.js
@@ -58,7 +58,8 @@ define('admin/appearance/skins', function() {
url: theme.preview,
css: theme.cssCdn
};
- })
+ }),
+ showRevert: true
}, function(html) {
themeContainer.html(html);
});
diff --git a/src/views/admin/partials/theme_list.tpl b/src/views/admin/partials/theme_list.tpl
index 5eb085bce4..cc3d0243fb 100644
--- a/src/views/admin/partials/theme_list.tpl
+++ b/src/views/admin/partials/theme_list.tpl
@@ -16,10 +16,12 @@
<div class="clear"></div>
</li>
<!-- END themes -->
+<!-- IF showRevert -->
<li data-type="bootswatch" data-theme="" data-css="">
<div class="pull-right">
<button class="btn btn-primary pull-right" data-action="use">Revert</button>
</div>
<h4>No Skin</h4>
<p>Remove applied skin and revert back to the base colours</p>
-</li>
\ No newline at end of file
+</li>
+<!-- ENDIF showRevert -->
\ No newline at end of file