nodebb-theme-persona 13.0.73 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/controllers.js +3 -1
- package/library.js +1 -1
- package/package.json +1 -1
- package/templates/admin/plugins/persona.tpl +22 -25
package/lib/controllers.js
CHANGED
|
@@ -6,7 +6,9 @@ const helpers = require.main.require('./src/controllers/helpers');
|
|
|
6
6
|
const Controllers = module.exports;
|
|
7
7
|
|
|
8
8
|
Controllers.renderAdminPage = (req, res) => {
|
|
9
|
-
res.render('admin/plugins/persona', {
|
|
9
|
+
res.render('admin/plugins/persona', {
|
|
10
|
+
title: 'Persona Theme',
|
|
11
|
+
});
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
Controllers.renderThemeSettings = async (req, res, next) => {
|
package/library.js
CHANGED
|
@@ -9,7 +9,7 @@ const library = module.exports;
|
|
|
9
9
|
library.init = async function (params) {
|
|
10
10
|
const { router, middleware } = params;
|
|
11
11
|
const routeHelpers = require.main.require('./src/routes/helpers');
|
|
12
|
-
routeHelpers.setupAdminPageRoute(router, '/admin/plugins/persona',
|
|
12
|
+
routeHelpers.setupAdminPageRoute(router, '/admin/plugins/persona', controllers.renderAdminPage);
|
|
13
13
|
|
|
14
14
|
routeHelpers.setupPageRoute(router, '/user/:userslug/theme', [
|
|
15
15
|
middleware.exposeUid,
|
package/package.json
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</form>
|
|
1
|
+
<div class="acp-page-container">
|
|
2
|
+
<!-- IMPORT admin/partials/settings/header.tpl -->
|
|
3
|
+
|
|
4
|
+
<div class="row m-0">
|
|
5
|
+
<div id="spy-container" class="col-12 col-md-8 px-0 mb-4" tabindex="0">
|
|
6
|
+
<form role="form" class="persona-settings">
|
|
7
|
+
<div class="form-check">
|
|
8
|
+
<input class="form-check-input" type="checkbox" id="hideSubCategories" name="hideSubCategories">
|
|
9
|
+
<label class="form-check-label">Hide subcategories on categories view</label>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-check">
|
|
12
|
+
<input class="form-check-input" type="checkbox" id="hideCategoryLastPost" name="hideCategoryLastPost">
|
|
13
|
+
<label class="form-check-label">Hide last post on categories view</label>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-check">
|
|
16
|
+
<input class="form-check-input" type="checkbox" id="enableQuickReply" name="enableQuickReply">
|
|
17
|
+
<label class="form-check-label">Enable quick reply</label>
|
|
18
|
+
</div>
|
|
19
|
+
</form>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<!-- IMPORT admin/partials/settings/toc.tpl -->
|
|
24
23
|
</div>
|
|
25
24
|
</div>
|
|
26
|
-
|
|
27
|
-
<!-- IMPORT admin/partials/save_button.tpl -->
|