nodebb-theme-harmony 2.0.0-pre.23 → 2.0.0-pre.25

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.0.0-pre.23",
3
+ "version": "2.0.0-pre.25",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -41,7 +41,7 @@
41
41
  "@fontsource/poppins": "5.0.8"
42
42
  },
43
43
  "devDependencies": {
44
- "eslint": "^8.0.0",
44
+ "eslint": "^9.0.0",
45
45
  "eslint-config-nodebb": "^0.2.0",
46
46
  "eslint-plugin-import": "^2.24.2"
47
47
  }
@@ -7,14 +7,21 @@
7
7
  <input class="form-control form-control-sm" type="text" id="user-search" placeholder="[[users:enter-username]]" data-bs-toggle="dropdown" autocomplete="off" aria-haspopup="true" aria-expanded="false"/>
8
8
 
9
9
  <ul component="blocks/search/list" class="dropdown-menu dropdown-menu-end p-1 text-sm block-edit overflow-auto" style="max-height:300px;" role="menu">
10
- <li><a href="#" class="dropdown-item" role="menuitem">[[admin/menu:search.start-typing]]</a></li>
10
+ <li component="blocks/start-typing">
11
+ <a href="#" class="dropdown-item rounded-1" role="menuitem">[[admin/menu:search.start-typing]]</a>
12
+ </li>
13
+ <li component="blocks/no-users" class="hidden">
14
+ <a href="#" class="dropdown-item rounded-1" role="menuitem">[[users:no-users-found]]</a>
15
+ </li>
11
16
  {{{ each edit }}}
12
- <li>
13
- <div class="dropdown-item d-flex flex-nowrap gap-2 justify-content-between" role="menuitem">
17
+ <li component="blocks/search/match">
18
+ <div class="dropdown-item rounded-1 d-flex flex-nowrap gap-4 justify-content-between align-items-center" role="menuitem">
14
19
  <div class="text-truncate">
15
20
  <a href="{config.relative_path}/uid/{./uid}" class="text-decoration-none">{buildAvatar(edit, "24px", true)} {./username}</a>
16
21
  </div>
17
- <button class="btn btn-sm btn-primary text-nowrap" data-uid="{./uid}" data-action="toggle">[[user:block-toggle]]</button>
22
+
23
+ <button class="btn btn-sm btn-outline-danger text-nowrap {{{ if ./isBlocked }}}hidden{{{ end }}}" data-uid="{./uid}" data-action="block">[[user:block-user]]</button>
24
+ <button class="btn btn-sm btn-outline-primary text-nowrap {{{ if !./isBlocked }}}hidden{{{ end }}}" data-uid="{./uid}" data-action="unblock">[[user:unblock-user]]</button>
18
25
  </div>
19
26
  </li>
20
27
  {{{ end }}}
@@ -28,12 +35,16 @@
28
35
  </div>
29
36
  </div>
30
37
  <div class="users">
31
- <div id="users-container" class="row row-cols-2 row-cols-lg-3 row-cols-xl-4 g-2">
38
+ <div class="alert alert-warning text-center m-0"{{{ if users.length }}} style="display: none;"{{{ end }}}>[[user:has-no-blocks]]</div>
39
+
40
+ <div id="users-container" class="row row-cols-2 row-cols-lg-3 row-cols-xl-4 g-3">
32
41
  {{{ each users }}}
33
- <!-- IMPORT partials/users/item.tpl -->
42
+ <div class="d-flex flex-column gap-1">
43
+ <!-- IMPORT partials/users/item.tpl -->
44
+ <button class="btn btn-sm btn-outline-primary text-nowrap mx-auto" data-uid="{./uid}" data-action="unblock">[[user:unblock-user]]</button>
45
+ </div>
34
46
  {{{ end }}}
35
47
  </div>
36
- <div class="alert alert-warning text-center"{{{ if users.length }}} style="display: none;"{{{ end }}}>[[user:has-no-blocks]]</div>
37
48
  <!-- IMPORT partials/paginator.tpl -->
38
49
  </div>
39
50
 
@@ -9,9 +9,9 @@
9
9
  <div class="row">
10
10
  <div class="col-sm-6">
11
11
  {{{ if gdpr_consent }}}
12
- <div class="alert alert-success">
13
- <i class="fa fa-check float-end fa-3x"></i>
12
+ <div class="alert alert-success d-flex gap-3">
14
13
  [[user:consent.received]]
14
+ <i class="fa fa-check fa-3x"></i>
15
15
  </div>
16
16
  {{{ else }}}
17
17
  <div class="alert alert-warning">
@@ -29,32 +29,91 @@
29
29
  [[user:info.username-history]]
30
30
  </h5>
31
31
  <div class="card-body">
32
- <ul class="list-group">
33
- {{{each usernames}}}
34
- <li class="list-group-item">
35
- {../value}
36
- <small class="float-end"><span class="timeago" title="{../timestampISO}"></span></small>
32
+ <ul class="list-unstyled mb-0">
33
+ {{{ each usernames }}}
34
+ <li class="d-flex justify-content-between mb-1">
35
+ <span class="text-sm">{./value}</span>
36
+
37
+ <div>
38
+ {{{ if ./byUid }}}
39
+ <a class="lh-1" href="{{{ if ./byUser.userslug }}}{config.relative_path}/user/{./byUser.userslug}{{{ else }}}#{{{ end }}}">
40
+ {buildAvatar(./byUser, "18px", true)}</a>
41
+ {{{ end }}}
42
+ <span class="timeago text-sm lh-1 align-middle" title="{./timestampISO}"></span>
43
+ </div>
37
44
  </li>
38
- {{{end}}}
45
+ {{{ end }}}
39
46
  </ul>
40
47
  </div>
41
48
  </div>
42
49
 
43
- <div class="card">
50
+ <div class="card mb-3">
44
51
  <h5 class="card-header">
45
52
  [[user:info.email-history]]
46
53
  </h5>
47
54
  <div class="card-body">
48
- <ul class="list-group">
49
- {{{each emails}}}
50
- <li class="list-group-item">
51
- {../value}
52
- <small class="float-end"><span class="timeago" title="{../timestampISO}"></span></small>
55
+ <ul class="list-unstyled mb-0">
56
+ {{{ each emails }}}
57
+ <li class="d-flex justify-content-between mb-1">
58
+ <span class="text-sm">{./value}</span>
59
+ <div>
60
+ {{{ if ./byUid }}}
61
+ <a class="lh-1" href="{{{ if ./byUser.userslug }}}{config.relative_path}/user/{./byUser.userslug}{{{ else }}}#{{{ end }}}">
62
+ {buildAvatar(./byUser, "18px", true)}</a>
63
+ {{{ end }}}
64
+ <span class="timeago text-sm lh-1 align-middle" title="{./timestampISO}"></span>
65
+ </div>
53
66
  </li>
54
- {{{end}}}
67
+ {{{ end }}}
55
68
  </ul>
56
69
  </div>
57
70
  </div>
71
+
72
+ {{{ if isAdminOrGlobalModerator }}}
73
+ <div class="card">
74
+ <h5 class="card-header">
75
+ [[user:info.moderation-note]]
76
+ </h5>
77
+ <div class="card-body">
78
+ <textarea component="account/moderation-note" class="form-control mb-3" aria-label="[[user:info.moderation-note]]"></textarea>
79
+
80
+ <button class="btn btn-sm float-end btn-success" component="account/save-moderation-note">[[user:info.moderation-note.add]]</button>
81
+ <br/>
82
+ <div component="account/moderation-note/list">
83
+ {{{ each moderationNotes }}}
84
+ <hr/>
85
+
86
+ <div data-id="{./id}">
87
+ <div class="mb-1">
88
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
89
+
90
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" class="fw-bold" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
91
+
92
+ <span class="timeago" title="{./timestampISO}"></span>
93
+ </div>
94
+
95
+
96
+ <div component="account/moderation-note/content-area" class="d-flex flex-column">
97
+ <div class="content">
98
+ {./note}
99
+ </div>
100
+ <button component="account/moderation-note/edit" class="btn btn-sm btn-link align-self-end">[[topic:edit]]</button>
101
+ </div>
102
+
103
+ <div component="account/moderation-note/edit-area" class="d-flex flex-column gap-2">
104
+ <textarea class="form-control w-100 overflow-hidden">{./rawNote}</textarea>
105
+ <div class="align-self-end">
106
+ <button component="account/moderation-note/cancel-edit" class="btn btn-sm btn-link text-danger align-self-end">[[global:cancel]]</button>
107
+ <button component="account/moderation-note/save-edit" class="btn btn-sm btn-primary align-self-end">[[global:save]]</button>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ {{{ end }}}
112
+ </div>
113
+ <!-- IMPORT partials/paginator.tpl -->
114
+ </div>
115
+ </div>
116
+ {{{ end }}}
58
117
  </div>
59
118
  <div class="col-sm-6 mb-3">
60
119
  <div class="card mb-3">
@@ -65,15 +124,38 @@
65
124
  {{{ if history.flags.length }}}
66
125
  <ul class="recent-flags list-unstyled">
67
126
  {{{ each history.flags }}}
68
- <li>
69
- <p>
127
+ <li class="mb-4 border-bottom">
128
+ <div class="mb-1 d-flex align-items-center justify-content-between">
129
+ <div>
130
+ {{{ if (./type == "user")}}}
131
+ <span class="badge text-bg-info">[[user:info.profile]]</span>
132
+ {{{ else }}}
133
+ <span class="badge text-bg-info">[[user:info.post]]</span>
134
+ {{{ end }}}
135
+ <span class="timestamp timeago" title="{./timestampISO}"></span>
136
+ </div>
137
+
138
+ <a href="{config.relative_path}/flags/{./flagId}" class="badge badge border border-gray-300 text-body">[[user:info.view-flag]]</a>
139
+ </div>
140
+
141
+ {{{ if (./type == "post") }}}
142
+ <p class="mb-1">
70
143
  {{{ if history.flags.targetPurged }}}
71
144
  <div>[[flags:target-purged]]</div>
72
145
  {{{ else }}}
73
- <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a><br />
146
+ <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a>
74
147
  {{{ end }}}
75
- <span class="timestamp">[[flags:flagged-timeago-readable, {./timestampISO}, {./timestampReadable}]]</span>
76
148
  </p>
149
+ {{{ end }}}
150
+
151
+ <div class="d-flex gap-2 align-items-center mb-3">
152
+ <span class="text-sm">[[user:info.reported-by]]</span>
153
+ <div class="d-flex text-nowrap">
154
+ {{{ each ./reports }}}
155
+ <a style="width: 18px; z-index: 3;" class="text-decoration-none" href="{config.relative_path}/user/{./reporter.userslug}">{buildAvatar(./reporter, "24px", true)}</a>
156
+ {{{ end }}}
157
+ </div>
158
+ </div>
77
159
  </li>
78
160
  {{{ end }}}
79
161
  </ul>
@@ -97,23 +179,36 @@
97
179
  <div class="card-body">
98
180
  {{{ if history.bans.length }}}
99
181
  <ul class="ban-history list-unstyled">
100
- {{{each history.bans}}}
101
- <li>
182
+ {{{ each history.bans }}}
183
+ <li class="mb-4 border-bottom">
184
+ <div class="mb-1 d-flex align-items-center justify-content-between">
185
+ <div>
186
+ <a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
187
+ <strong>
188
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
189
+ </strong>
190
+ <span class="timestamp timeago" title="{./timestampISO}"></span>
191
+ </div>
192
+ {{{ if (./type != "unban") }}}
193
+ <span class="badge text-bg-danger">[[user:banned]]</span>
194
+ {{{ else }}}
195
+ <span class="badge text-bg-success">[[user:unbanned]]</span>
196
+ {{{ end }}}
197
+ </div>
198
+ <p class="mb-1">
199
+ <span class="reason">[[user:info.banned-reason-label]]: <strong>{./reason}</strong></span>
200
+ </p>
102
201
  <p>
103
- <a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
104
- <strong>
105
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
106
- </strong>
107
- <span class="timestamp timeago" title="{./timestampISO}"></span> &mdash; {./timestampReadable}<br />
108
202
  {{{ if ./until }}}
109
- <span class="expiry">[[user:info.banned-until, {./untilReadable}]]</span><br />
203
+ <span class="expiry">[[user:info.banned-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]]</span>
110
204
  {{{ else }}}
111
- <span class="expiry">[[user:info.banned-permanently]]</span><br />
205
+ {{{ if (./type != "unban") }}}
206
+ <span class="expiry">[[user:info.banned-permanently]]</span>
207
+ {{{ end }}}
112
208
  {{{ end }}}
113
- <span class="reason"><strong>[[user:info.banned-reason-label]]</strong>: {./reason}</span>
114
209
  </p>
115
210
  </li>
116
- {{{end}}}
211
+ {{{ end }}}
117
212
  </ul>
118
213
  {{{ else }}}
119
214
  <div class="alert alert-success">[[user:info.no-ban-history]]</div>
@@ -139,18 +234,28 @@
139
234
  {{{ if history.mutes.length }}}
140
235
  <ul class="ban-history list-unstyled">
141
236
  {{{ each history.mutes }}}
142
- <li>
237
+ <li class="mb-4 border-bottom">
238
+ <div class="mb-1 d-flex align-items-center justify-content-between">
239
+ <div>
240
+ <a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
241
+ <strong>
242
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
243
+ </strong>
244
+ <span class="timestamp timeago" title="{./timestampISO}"></span>
245
+ </div>
246
+ {{{ if (./type != "unmute") }}}
247
+ <span class="badge text-bg-danger">[[user:muted]]</span>
248
+ {{{ else }}}
249
+ <span class="badge text-bg-success">[[user:unmuted]]</span>
250
+ {{{ end }}}
251
+ </div>
252
+ <p class="mb-1">
253
+ <span class="reason">[[user:info.banned-reason-label]]: <strong>{./reason}</strong></span>
254
+ </p>
143
255
  <p>
144
- <a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
145
- <strong>
146
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
147
- </strong>
148
- <span class="timestamp timeago" title="{./timestampISO}"></span> &mdash; {./timestampReadable}<br />
149
256
  {{{ if ./until }}}
150
- <span class="expiry">[[user:info.muted-until, {./untilReadable}]]</span><br />
257
+ <span class="expiry">[[user:info.muted-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]]</span>
151
258
  {{{ end }}}
152
-
153
- <span class="reason"><strong>[[user:info.banned-reason-label]]</strong>: {./reason}</span>
154
259
  </p>
155
260
  </li>
156
261
  {{{ end }}}
@@ -160,42 +265,6 @@
160
265
  {{{ end }}}
161
266
  </div>
162
267
  </div>
163
-
164
- {{{ if isAdminOrGlobalModerator }}}
165
- <div class="card">
166
- <h5 class="card-header">
167
- [[user:info.moderation-note]]
168
- </h5>
169
- <div class="card-body">
170
- <textarea component="account/moderation-note" class="form-control mb-3" aria-label="[[user:info.moderation-note]]"></textarea>
171
-
172
- <button class="btn btn-sm float-end btn-success" component="account/save-moderation-note">[[user:info.moderation-note.add]]</button>
173
- <br/>
174
- <div component="account/moderation-note/list">
175
- {{{ each moderationNotes }}}
176
- <hr/>
177
-
178
- <div>
179
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
180
- <strong>
181
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
182
- </strong>
183
-
184
- <div class="visible-xs-inline-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block">
185
- <span class="timeago" title="{./timestampISO}"></span>
186
- </div>
187
- <br />
188
-
189
- <div class="content">
190
- {./note}
191
- </div>
192
- </div>
193
- {{{ end }}}
194
- </div>
195
- <!-- IMPORT partials/paginator.tpl -->
196
- </div>
197
- </div>
198
- {{{ end }}}
199
268
  </div>
200
269
  </div>
201
270
 
@@ -24,7 +24,7 @@
24
24
  <div class="alert alert-warning text-center">{noItemsFoundKey}</div>
25
25
  {{{ end }}}
26
26
 
27
- <div class="">
27
+ <div>
28
28
  <!-- IMPORT partials/posts_list.tpl -->
29
29
 
30
30
  {{{ if config.usePagination }}}
@@ -100,7 +100,7 @@
100
100
  <label class="form-label text-sm" for="topicsPerPage">[[user:topics-per-page]] ([[user:max-items-per-page, {maxTopicsPerPage}]])</label>
101
101
  <input type="text" class="form-control form-control-sm" id="topicsPerPage" data-property="topicsPerPage" value="{settings.topicsPerPage}">
102
102
  </div>
103
- <div class="">
103
+ <div>
104
104
  <label class="form-label text-sm" for="postsPerPage">[[user:posts-per-page]] ([[user:max-items-per-page, {maxPostsPerPage}]])</label>
105
105
  <input type="text" class="form-control form-control-sm" id="postsPerPage" data-property="postsPerPage" value="{settings.postsPerPage}">
106
106
  </div>
@@ -119,7 +119,7 @@
119
119
  <option value="most_views" {{{ if (settings.categoryTopicSort == "most_views") }}}selected{{{ end }}}>[[topic:most-views]]</option>
120
120
  </select>
121
121
  </div>
122
- <div class="">
122
+ <div>
123
123
  <label class="form-label text-sm" for="topicPostSort">[[user:topic-post-sort]]</label>
124
124
  <select class="form-select form-select-sm" id="topicPostSort" data-property="topicPostSort">
125
125
  <option value="oldest_to_newest" {{{ if (settings.topicPostSort == "oldest_to_newest") }}}selected{{{ end }}}>[[topic:oldest-to-newest]]</option>
@@ -132,7 +132,7 @@
132
132
  {{{ if !disableEmailSubscriptions }}}
133
133
  <hr/>
134
134
  <h6 class="fw-bold">[[global:email]]</h6>
135
- <div class="">
135
+ <div>
136
136
  <div class="mb-2">
137
137
  <label class="form-label text-sm" for="dailyDigestFreq">[[user:digest-label]]</label>
138
138
  <select class="form-select form-select-sm" id="dailyDigestFreq" data-property="dailyDigestFreq" autocomplete="off">
@@ -148,7 +148,7 @@
148
148
  {{{ each customSettings}}}
149
149
  <hr/>
150
150
  <h6 class="fw-bold">{./title}</h6>
151
- <div class="">
151
+ <div>
152
152
  {./content}
153
153
  </div>
154
154
  {{{end}}}
@@ -177,7 +177,7 @@
177
177
  {{{ end }}}
178
178
 
179
179
  <h6 class="fw-bold">[[topic:watch]]</h6>
180
- <div class="">
180
+ <div>
181
181
  <div class="form-check form-switch">
182
182
  <input class="form-check-input" type="checkbox" role="switch" id="followTopicsOnCreate" data-property="followTopicsOnCreate" {{{ if settings.followTopicsOnCreate }}}checked{{{ end }}}/>
183
183
  <label class="form-check-label text-sm" for="followTopicsOnCreate">[[user:follow-topics-you-create]]</label>
@@ -87,7 +87,7 @@
87
87
  <div class="d-flex gap-2 align-items-center">
88
88
  <a class="d-flex text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "16px", true)}</a>
89
89
  <a href="{config.relative_path}/user/{./user.userslug}">{./user.username}</a>
90
- <span class="timeago text-muted" title="{./datetimeISO}"></span>
90
+ <span class="timeago text-muted text-nowrap" title="{./datetimeISO}"></span>
91
91
  </div>
92
92
  <div>
93
93
  <ul class="list-unstyled">
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
  <!-- IMPORT partials/mobile-footer.tpl -->
7
7
  {{{ if !isSpider }}}
8
- <div class="">
8
+ <div>
9
9
  <div component="toaster/tray" class="alert-window fixed-bottom mb-5 mb-md-2 me-2 me-md-5 ms-auto" style="width:300px; z-index: 1090;">
10
10
  <!-- IMPORT partials/reconnect-alert.tpl -->
11
11
  </div>
@@ -16,9 +16,9 @@
16
16
  </div>
17
17
  </div>
18
18
  </div>
19
- <div class="">
19
+ <div>
20
20
  <div class="d-flex justify-content-end gap-2">
21
- <div class="">
21
+ <div>
22
22
  {{{ if allowGroupCreation }}}
23
23
  <button class="btn btn-primary btn-sm text-nowrap" data-action="new"><i class="fa fa-users"></i> [[groups:new-group]]</button>
24
24
  {{{ end }}}
@@ -28,7 +28,7 @@
28
28
  <option value="date">[[groups:details.creation-date]]</option>
29
29
  </select>
30
30
  </div>
31
- <div class="">
31
+ <div>
32
32
  <div class="input-group">
33
33
  <input type="text" class="form-control form-control-sm" placeholder="[[global:search]]" name="query" id="search-text">
34
34
  <button id="search-button" class="btn btn-primary btn-sm" aria-label="[[global:search]]">
@@ -15,26 +15,20 @@
15
15
  <label for="username">{allowLoginWith}</label>
16
16
  <input class="form-control" type="text" placeholder="{allowLoginWith}" name="username" id="username" autocorrect="off" autocapitalize="off" autocomplete="nickname" value="{username}" aria-required="true"/>
17
17
  </div>
18
+
18
19
  <div class="mb-2 d-flex flex-column gap-2">
19
- <div class="d-flex justify-content-between align-items-center">
20
- <label for="password">[[user:password]]</label>
21
- {{{ if allowPasswordReset }}}
22
- <a id="reset-link" class="text-sm text-reset text-decoration-underline" href="{config.relative_path}/reset">[[login:forgot-password]]</a>
23
- {{{ end }}}
24
- </div>
20
+ <label for="password">[[user:password]]</label>
25
21
  <div>
26
22
  <input class="form-control" type="password" placeholder="[[user:password]]" name="password" id="password" autocomplete="current-password" autocapitalize="off" aria-required="true"/>
27
23
  <p id="caps-lock-warning" class="text-danger hidden text-sm mb-0 form-text" aria-live="polite" role="alert" aria-atomic="true">
28
24
  <i class="fa fa-exclamation-triangle"></i> [[login:caps-lock-enabled]]
29
25
  </p>
30
26
  </div>
31
- </div>
32
- <div class="mb-2">
33
- <div class="checkbox">
34
- <label>
35
- <input type="checkbox" name="remember" id="remember" checked /> [[login:remember-me]]
36
- </label>
27
+ {{{ if allowPasswordReset }}}
28
+ <div>
29
+ <a id="reset-link" class="text-sm text-reset text-decoration-underline" href="{config.relative_path}/reset">[[login:forgot-password]]</a>
37
30
  </div>
31
+ {{{ end }}}
38
32
  </div>
39
33
 
40
34
  {{{ each loginFormEntry }}}
@@ -49,6 +43,11 @@
49
43
 
50
44
  <button class="btn btn-primary" id="login" type="submit">[[global:login]]</button>
51
45
 
46
+ <div class="form-check mb-2">
47
+ <input class="form-check-input" type="checkbox" name="remember" id="remember" checked />
48
+ <label class="form-check-label" for="remember">[[login:remember-me]]</label>
49
+ </div>
50
+
52
51
  <div class="alert alert-danger {{{ if !error }}} hidden{{{ end }}}" id="login-error-notify" role="alert" aria-atomic="true">
53
52
  <strong>[[login:failed-login-attempt]]</strong>
54
53
  <p class="mb-0">{error}</p>
@@ -1,26 +1,16 @@
1
- <script type="application/ld+json">
2
- {
3
- "@context": "https://schema.org",
4
- "@type": "BreadcrumbList",
5
- "itemListElement": [
6
- {
7
- "@type": "ListItem",
8
- "position": 1,
9
- "name": "{config.siteTitle}",
10
- "item": "{breadcrumbs.0.url}"
11
- }
12
- {{{ each breadcrumbs }}}
13
- {{{ if !@first}}}
14
- ,{
15
- "@type": "ListItem",
16
- "position": {increment(@index, "1")},
17
- "name": "{stripTags(./text)}"
18
- {{{ if !@last }}}
19
- ,"item": "{./url}"
20
- {{{ end }}}
21
- }
22
- {{{ end }}}
23
- {{{ end }}}
24
- ]
1
+ <script type="application/ld+json">{
2
+ "@context": "https://schema.org",
3
+ "@type": "BreadcrumbList",
4
+ "itemListElement": [{
5
+ "@type": "ListItem",
6
+ "position": 1,
7
+ "name": "{config.siteTitle}",
8
+ "item": "{breadcrumbs.0.url}"
25
9
  }
26
- </script>
10
+ {{{ each breadcrumbs }}}{{{ if !@first}}},{
11
+ "@type": "ListItem",
12
+ "position": {increment(@index, "1")},
13
+ "name": "{stripTags(./text)}"
14
+ {{{ if !@last }}},"item": "{./url}"{{{ end }}}
15
+ }{{{ end }}}{{{ end }}}
16
+ ]}</script>
@@ -4,7 +4,7 @@
4
4
  <button component="groups/members/add" type="button" class="btn btn-primary btn-sm me-3" title="[[groups:details.add-member]]"><i class="fa fa-user-plus"></i> [[groups:details.add-member]]</button>
5
5
  </div>
6
6
  {{{ end }}}
7
- <div class="">
7
+ <div>
8
8
  <div class="input-group">
9
9
  <input class="form-control form-control-sm" type="text" component="groups/members/search" placeholder="[[global:search]]"/>
10
10
  <button class="btn btn-primary btn-sm search-button" type="button">
@@ -15,16 +15,13 @@
15
15
  {{{ each navigation }}}
16
16
  {{{ if displayMenuItem(@root, @index) }}}
17
17
  <li class="nav-item {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
18
- <a class="nav-link navigation-link px-3 py-2 {{{ if ./dropdown }}}dropdown-toggle{{{ end }}}"
19
- {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
18
+ <a class="nav-link navigation-link px-3 py-2 {{{ if ./dropdown }}}dropdown-toggle{{{ end }}}" {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
20
19
  <span class="d-inline-flex justify-content-between align-items-center w-100">
21
20
  <span class="text-nowrap">
22
21
  {{{ if ./iconClass }}}
23
22
  <i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
24
23
  {{{ end }}}
25
- {{{ if ./text }}}
26
- <span class="nav-text px-2 fw-semibold">{./text}</span>
27
- {{{ end }}}
24
+ {{{ if ./text }}}<span class="nav-text px-2 fw-semibold">{./text}</span>{{{ end }}}
28
25
  </span>
29
26
  <span component="navigation/count" class="badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
30
27
  </span>
@@ -18,9 +18,7 @@
18
18
  {{{ end }}}
19
19
 
20
20
  {{{ if browsingUsers }}}
21
- <div class="hidden-xs">
22
- <!-- IMPORT partials/topic/browsing-users.tpl -->
23
- </div>
21
+ <div class="hidden-xs"><!-- IMPORT partials/topic/browsing-users.tpl --></div>
24
22
  {{{ end }}}
25
23
  </div>
26
24
  <!-- IMPORT partials/topic/reply-button.tpl -->
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  {{{ end }}}
11
11
 
12
- <ul id="quick-search-results" class="quick-search-results list-unstyled mb-0 p-0 pe-1 overflow-auto overscroll-behavior-contain ff-base ghost-scrollbar" style="max-width: 400px; max-height: 500px;">
12
+ <ul id="quick-search-results" class="quick-search-results list-unstyled mb-0 p-0 pe-1 overflow-auto overscroll-behavior-contain ff-base ghost-scrollbar" style="max-width: {dropdown.maxWidth}; max-height: {dropdown.maxHeight};">
13
13
  <li role="separator" class="dropdown-divider d-none d-md-block"></li>
14
14
  {{{ each posts }}}
15
15
  <li data-tid="{posts.topic.tid}" data-pid="{posts.pid}" class="d-flex flex-column gap-1">
@@ -3,8 +3,7 @@
3
3
  {{{ each navigation }}}
4
4
  {{{ if displayMenuItem(@root, @index) }}}
5
5
  <li class="nav-item mx-2 {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
6
- <a class="nav-link navigation-link d-flex gap-2 justify-content-between align-items-center {{{ if ./dropdown }}}dropdown-toggle{{{ end }}}"
7
- {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}} {{{ if ./text }}}aria-label="{./text}"{{{ end }}}>
6
+ <a class="nav-link navigation-link d-flex gap-2 justify-content-between align-items-center {{{ if ./dropdown }}}dropdown-toggle{{{ end }}}" {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}} {{{ if ./text }}}aria-label="{./text}"{{{ end }}}>
8
7
  <span class="d-flex gap-2 align-items-center text-nowrap truncate-open">
9
8
  <span class="position-relative">
10
9
  {{{ if ./iconClass }}}
@@ -12,9 +11,7 @@
12
11
  <span component="navigation/count" class="visible-closed position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
13
12
  {{{ end }}}
14
13
  </span>
15
- {{{ if ./text }}}
16
- <span class="nav-text small visible-open fw-semibold text-truncate">{./text}</span>
17
- {{{ end }}}
14
+ {{{ if ./text }}}<span class="nav-text small visible-open fw-semibold text-truncate">{./text}</span>{{{ end }}}
18
15
  </span>
19
16
  <span component="navigation/count" class="visible-open badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
20
17
  </a>
@@ -2,7 +2,7 @@
2
2
  <div class="d-flex justify-content-end sticky-top mt-4" style="top:6rem;z-index:1;">
3
3
  <div class="ps-1 ps-md-0 d-inline-block">
4
4
  <div class="scroller-content d-flex gap-2 flex-column align-items-start">
5
- <div class="pointer pagetop btn-ghost-sm ff-secondary d-inline-flex" style="padding: 4px;"><i class="fa fa-chevron-up"></i> <span class="timeago text-xs text-muted text-nowrap" title="{./timestampISO}"></span></div>
5
+ <button class="pagetop btn-ghost-sm ff-secondary d-inline-flex border-0" style="padding: 4px;"><i class="fa fa-chevron-up"></i> <span class="timeago text-xs text-muted text-nowrap" title="{./timestampISO}"></span></button>
6
6
  <div class="scroller-container position-relative">
7
7
  <div class="scroller-thumb d-flex gap-2 text-nowrap position-relative" style="height: 40px;">
8
8
  <div class="scroller-thumb-icon bg-primary rounded d-inline-block" style="width:9px; height: 40px;"></div>
@@ -18,7 +18,7 @@
18
18
  </div>
19
19
  </div>
20
20
  </div>
21
- <div class="pointer pagebottom btn-ghost-sm ff-secondary d-inline-flex" style="padding: 4px;"><i class="fa fa-chevron-down"></i> <span class="timeago text-xs text-muted text-nowrap" title="{./lastposttimeISO}"></span></div>
21
+ <button class="pagebottom btn-ghost-sm ff-secondary d-inline-flex border-0" style="padding: 4px;"><i class="fa fa-chevron-down"></i> <span class="timeago text-xs text-muted text-nowrap" title="{./lastposttimeISO}"></span></button>
22
22
  </div>
23
23
  </div>
24
24
  </div>