nodebb-theme-persona 13.0.73 → 13.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.0.73",
3
+ "version": "13.1.1",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -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 -->
@@ -1,11 +1,11 @@
1
- <!-- IF ../isSection -->
2
- {../name}
3
- <!-- ELSE -->
4
- <!-- IF ../link -->
5
- <a href="{../link}" itemprop="url">
6
- <!-- ELSE -->
7
- <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
- <!-- ENDIF ../link -->
9
- {../name}
10
- </a>
1
+ <!-- IF ../isSection -->
2
+ {../name}
3
+ <!-- ELSE -->
4
+ <!-- IF ../link -->
5
+ <a href="{../link}" itemprop="url">
6
+ <!-- ELSE -->
7
+ <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
+ <!-- ENDIF ../link -->
9
+ {../name}
10
+ </a>
11
11
  <!-- ENDIF ../isSection -->
@@ -73,7 +73,7 @@
73
73
 
74
74
  <div class="clearfix">
75
75
  {{{ if !hideReplies }}}
76
- <a component="post/reply-count" data-target-component="post/replies/container" href="#" class="threaded-replies user-select-none float-start text-muted {{{ if !posts.replies.count }}}hidden{{{ end }}}">
76
+ <a component="post/reply-count" data-target-component="post/replies/container" href="#" class="threaded-replies user-select-none float-start text-muted {{{ if (!./replies || shouldHideReplyContainer(@value)) }}}hidden{{{ end }}}">
77
77
  <span component="post/reply-count/avatars" class="avatars d-inline-flex gap-1 align-items-top hidden-xs {{{ if posts.replies.hasMore }}}hasMore{{{ end }}}">
78
78
  {{{each posts.replies.users}}}
79
79
  <span>{buildAvatar(posts.replies.users, "16px", true, "")}</span>
package/theme.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- "id": "nodebb-theme-persona",
3
- "name": "Persona",
4
- "description": "The default theme for NodeBB. Uses a standard approach to forum design.",
5
- "url": "https://github.com/psychobunny/nodebb-theme-persona",
6
- "screenshot": "screenshot.png"
1
+ {
2
+ "id": "nodebb-theme-persona",
3
+ "name": "Persona",
4
+ "description": "The default theme for NodeBB. Uses a standard approach to forum design.",
5
+ "url": "https://github.com/psychobunny/nodebb-theme-persona",
6
+ "screenshot": "screenshot.png"
7
7
  }