nodebb-theme-persona 13.0.72 → 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.
@@ -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', [], controllers.renderAdminPage);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.0.72",
3
+ "version": "13.1.0",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/scss/header.scss CHANGED
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .mark-read {
59
- color: $text-muted;
59
+ color: $secondary;
60
60
  .read {
61
61
  display: block;
62
62
  }
@@ -64,7 +64,7 @@
64
64
  display: none;
65
65
  }
66
66
  &:hover {
67
- color: darken($text-muted, 10%);
67
+ color: darken($secondary, 10%);
68
68
  @include pointer;
69
69
  }
70
70
  }
@@ -1,27 +1,24 @@
1
- <div class="row">
2
- <div class="col-sm-2 col-12 settings-header">Theme Settings</div>
3
- <div class="col-sm-10 col-12">
4
- <form role="form" class="persona-settings">
5
- <div class="checkbox">
6
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
7
- <input class="mdl-switch__input" type="checkbox" id="hideSubCategories" name="hideSubCategories">
8
- <span class="mdl-switch__label"><strong>Hide subcategories on categories view</strong></span>
9
- </label>
10
- </div>
11
- <div class="checkbox">
12
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
13
- <input class="mdl-switch__input" type="checkbox" id="hideCategoryLastPost" name="hideCategoryLastPost">
14
- <span class="mdl-switch__label"><strong>Hide last post on categories view</strong></span>
15
- </label>
16
- </div>
17
- <div class="checkbox">
18
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
19
- <input class="mdl-switch__input" type="checkbox" id="enableQuickReply" name="enableQuickReply">
20
- <span class="mdl-switch__label"><strong>Enable quick reply</strong></span>
21
- </label>
22
- </div>
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 -->