nodebb-theme-persona 14.2.29 → 14.2.31

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/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "14.2.29",
3
+ "version": "14.2.31",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-theme-persona",
9
- "version": "14.2.29",
9
+ "version": "14.2.31",
10
10
  "license": "BSD-2-Clause",
11
11
  "dependencies": {
12
12
  "pulling": "^2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "14.2.29",
3
+ "version": "14.2.31",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -27,7 +27,7 @@
27
27
  <div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
28
28
  <div class="category">
29
29
  <div class="row flex-row-reverse">
30
- <div class="col-lg-4 col-sm-12 mt-2 pt-1">
30
+ <div class="col-lg-4 col-sm-12 mt-2 pt-1 {{{ if !config.loggedIn }}}invisible{{{ end }}}">
31
31
  <form class="mb-3" role="search" method="GET" action="{config.relative_path}/search">
32
32
  <input type="hidden" name="in" value="categories" />
33
33
  <div class="input-group bottom-sheet">
@@ -66,10 +66,10 @@
66
66
  </ul>
67
67
  </div>
68
68
 
69
- {{{ if posts.length }}}
70
69
  <div class="col-lg-8 col-sm-12">
71
70
  {{{ if posts.length }}}
72
71
  <div class="topic-list-header sticky-top btn-toolbar justify-content-end align-items-center px-1 py-2 mb-2 flex-nowrap">
72
+ {{{ if config.loggedIn }}}
73
73
  <div class="dropdown bottom-sheet">
74
74
  <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
75
75
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
@@ -77,6 +77,8 @@
77
77
  </button>
78
78
  <ul class="dropdown-menu" id="sort-options">
79
79
  <li><a class="dropdown-item" href="{config.relative_path}/world">[[world:latest]]</a></li>
80
+ <li><a class="dropdown-item" href="{config.relative_path}/world?local=1">[[world:latest-local]]</a></li>
81
+ <li><a class="dropdown-item" href="{config.relative_path}/world?all=1">[[world:latest-all]]</a></li>
80
82
  <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">[[world:popular-day]]</a></li>
81
83
  <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">[[world:popular-week]]</a></li>
82
84
  <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">[[world:popular-month]]</a></li>
@@ -84,6 +86,7 @@
84
86
  <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">[[world:popular-alltime]]</a></li>
85
87
  </ul>
86
88
  </div>
89
+ {{{ end }}}
87
90
  <a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" id="world-help" href="#">
88
91
  <i class="fa fa-question text-primary"></i>
89
92
  <span class="visible-md-inline visible-lg-inline">[[world:help]]</span>
@@ -94,6 +97,20 @@
94
97
 
95
98
  <!-- IMPORT partials/topic/quickreply.tpl -->
96
99
 
100
+ {{{ if !config.loggedIn }}}
101
+ <div class="alert alert-info alert-dismissible fade show">
102
+ <p class="fw-semibold">
103
+ [[world:onboard.title]]
104
+ </p>
105
+ <p>[[world:onboard.what]]</p>
106
+ <p>[[world:onboard.why]]</p>
107
+ <p>[[world:onboard.how]]</p>
108
+ <a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">[[global:register]]</a>
109
+ <a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">[[global:login]]</a>
110
+ <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
111
+ </div>
112
+ {{{ end }}}
113
+
97
114
  <ul class="list-unstyled" id="world-feed">
98
115
  {{{ each posts }}}
99
116
  <!-- IMPORT partials/feed/item.tpl -->
@@ -104,19 +121,6 @@
104
121
  <!-- IMPORT partials/paginator.tpl -->
105
122
  {{{ end }}}
106
123
  </div>
107
- {{{ else }}}
108
- <div class="col-lg-8 col-sm-12 d-flex gap-3 align-items-top">
109
- <div>
110
- <h2 class="fs-4 mb-3">
111
- <i class="fa fa-comment-nodes"></i>
112
- [[world:onboard.title]]
113
- </h2>
114
- <p>[[world:onboard.what]]</p>
115
- <p>[[world:onboard.why]]</p>
116
- <p>[[world:onboard.how]]</p>
117
- </div>
118
- </div>
119
- {{{ end }}}
120
124
  </div>
121
125
  </div>
122
126
  </div>