nodebb-theme-harmony 2.0.0-pre.9 → 2.0.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.
Files changed (94) hide show
  1. package/README.md +3 -0
  2. package/library.js +1 -7
  3. package/package-lock.json +372 -402
  4. package/package.json +2 -2
  5. package/plugin.json +1 -2
  6. package/public/harmony.js +15 -15
  7. package/scss/common.scss +2 -8
  8. package/scss/harmony.scss +0 -1
  9. package/scss/header.scss +1 -1
  10. package/scss/mixins.scss +12 -5
  11. package/scss/modules/cover.scss +2 -4
  12. package/scss/modules/topics-list.scss +1 -1
  13. package/scss/overrides.scss +4 -0
  14. package/scss/sidebar.scss +18 -19
  15. package/scss/skins.scss +9 -0
  16. package/scss/topic.scss +4 -12
  17. package/templates/account/blocks.tpl +18 -7
  18. package/templates/account/categories.tpl +1 -1
  19. package/templates/account/consent.tpl +2 -2
  20. package/templates/account/edit/password.tpl +8 -8
  21. package/templates/account/edit/username.tpl +2 -3
  22. package/templates/account/edit.tpl +30 -15
  23. package/templates/account/info.tpl +142 -73
  24. package/templates/account/posts.tpl +7 -7
  25. package/templates/account/profile.tpl +19 -22
  26. package/templates/account/read.tpl +1 -0
  27. package/templates/account/settings.tpl +5 -5
  28. package/templates/account/shares.tpl +20 -0
  29. package/templates/account/topics.tpl +6 -5
  30. package/templates/admin/plugins/harmony.tpl +1 -0
  31. package/templates/footer.tpl +1 -1
  32. package/templates/groups/list.tpl +9 -7
  33. package/templates/notifications.tpl +1 -1
  34. package/templates/partials/account/header.tpl +15 -15
  35. package/templates/partials/account/sidebar-left.tpl +30 -16
  36. package/templates/partials/breadcrumbs-json-ld.tpl +15 -25
  37. package/templates/partials/categories/item.tpl +8 -8
  38. package/templates/partials/categories/lastpost.tpl +1 -1
  39. package/templates/partials/category/subcategory.tpl +1 -1
  40. package/templates/partials/groups/list.tpl +1 -1
  41. package/templates/partials/groups/memberlist.tpl +1 -1
  42. package/templates/partials/groups/sidebar-left.tpl +8 -8
  43. package/templates/partials/header/brand.tpl +3 -1
  44. package/templates/partials/mobile-footer.tpl +3 -6
  45. package/templates/partials/notifications_list.tpl +2 -2
  46. package/templates/partials/post_bar.tpl +3 -5
  47. package/templates/partials/posts_list_item.tpl +1 -1
  48. package/templates/partials/quick-search-results.tpl +5 -5
  49. package/templates/partials/search-filters.tpl +1 -1
  50. package/templates/partials/search-results.tpl +1 -1
  51. package/templates/partials/sidebar/chats.tpl +1 -1
  52. package/templates/partials/sidebar/notifications.tpl +1 -1
  53. package/templates/partials/sidebar/search.tpl +2 -2
  54. package/templates/partials/sidebar-left.tpl +2 -5
  55. package/templates/partials/tags_list.tpl +6 -4
  56. package/templates/partials/topic/event.tpl +1 -1
  57. package/templates/partials/topic/navigator.tpl +2 -2
  58. package/templates/partials/topic/post-menu-list.tpl +20 -4
  59. package/templates/partials/topic/post-menu.tpl +3 -29
  60. package/templates/partials/topic/post.tpl +108 -101
  61. package/templates/partials/topic/quickreply.tpl +2 -2
  62. package/templates/partials/topic/reply-button.tpl +4 -2
  63. package/templates/partials/topic/sort.tpl +1 -1
  64. package/templates/partials/topic/thumbs.tpl +1 -1
  65. package/templates/partials/topic/tools.tpl +2 -6
  66. package/templates/partials/topic/watch.tpl +1 -1
  67. package/templates/partials/topic-filters.tpl +1 -1
  68. package/templates/partials/topic-list-bar.tpl +6 -6
  69. package/templates/partials/topic-terms.tpl +1 -1
  70. package/templates/partials/topics_list.tpl +12 -4
  71. package/templates/partials/users/item.tpl +33 -31
  72. package/templates/partials/users_list_menu.tpl +5 -5
  73. package/templates/post-queue.tpl +6 -2
  74. package/templates/recent.tpl +7 -0
  75. package/templates/topic.tpl +81 -88
  76. package/templates/users.tpl +2 -2
  77. package/templates/world.tpl +32 -1
  78. package/scss/modules/bottom-sheet.scss +0 -52
  79. package/templates/flags/detail.tpl +0 -179
  80. package/templates/flags/list.tpl +0 -6
  81. package/templates/login.tpl +0 -102
  82. package/templates/partials/category/filter-dropdown-content.tpl +0 -41
  83. package/templates/partials/category/selector-dropdown-content.tpl +0 -39
  84. package/templates/partials/category/sort.tpl +0 -39
  85. package/templates/partials/category/tools.tpl +0 -89
  86. package/templates/partials/category/watch.tpl +0 -67
  87. package/templates/partials/flags/bulk-actions.tpl +0 -9
  88. package/templates/partials/flags/filters.tpl +0 -189
  89. package/templates/partials/flags/results.tpl +0 -38
  90. package/templates/partials/groups/filter-dropdown-content.tpl +0 -25
  91. package/templates/partials/tags/filter-dropdown-content.tpl +0 -38
  92. package/templates/partials/tags/watch.tpl +0 -42
  93. package/templates/partials/users/filter-dropdown-content.tpl +0 -23
  94. package/templates/register.tpl +0 -104
@@ -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
 
@@ -3,19 +3,19 @@
3
3
  <div class="d-flex flex-wrap justify-content-between align-items-center gap-2 mb-3">
4
4
  <h3 class="fw-semibold fs-5 mb-0">[[global:posts]]</h3>
5
5
  <div class="d-flex flex-wrap gap-1">
6
- <a href="{config.relative_path}/user/{userslug}/posts" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/posts }}}active{{{ end }}}">[[global:header.recent]]</a>
6
+ <a href="{config.relative_path}/user/{userslug}/posts" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/posts }}}active{{{ end }}}">[[global:header.recent]]</a>
7
7
  {{{ if !reputation:disabled }}}
8
- <a href="{config.relative_path}/user/{userslug}/best"class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/best }}}active{{{ end }}}">[[global:best]]</a>
9
- <a href="{config.relative_path}/user/{userslug}/controversial" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/controversial }}}active{{{ end }}}">[[global:controversial]]</a>
8
+ <a href="{config.relative_path}/user/{userslug}/best"class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/best }}}active{{{ end }}}">[[global:best]]</a>
9
+ <a href="{config.relative_path}/user/{userslug}/controversial" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/controversial }}}active{{{ end }}}">[[global:controversial]]</a>
10
10
  {{{ if canEdit }}}
11
- <a href="{config.relative_path}/user/{userslug}/upvoted" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/upvoted }}}active{{{ end }}}">[[global:upvoted]]</a>
11
+ <a href="{config.relative_path}/user/{userslug}/upvoted" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/upvoted }}}active{{{ end }}}">[[global:upvoted]]</a>
12
12
  {{{ if !downvote:disabled }}}
13
- <a href="{config.relative_path}/user/{userslug}/downvoted" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/downvoted }}}active{{{ end }}}">[[global:downvoted]]</a>
13
+ <a href="{config.relative_path}/user/{userslug}/downvoted" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/downvoted }}}active{{{ end }}}">[[global:downvoted]]</a>
14
14
  {{{ end }}}
15
15
  {{{ end }}}
16
16
  {{{ end }}}
17
17
  {{{ if canEdit }}}
18
- <a href="{config.relative_path}/user/{userslug}/bookmarks" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/bookmarks }}}active{{{ end }}}">[[user:bookmarks]]</a>
18
+ <a href="{config.relative_path}/user/{userslug}/bookmarks" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/bookmarks }}}active{{{ end }}}">[[user:bookmarks]]</a>
19
19
  {{{ end }}}
20
20
  </div>
21
21
  </div>
@@ -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 }}}
@@ -23,17 +23,17 @@
23
23
  {{{ end }}}
24
24
 
25
25
  <div class="account-stats container">
26
- <div class="row row-cols-2 row-cols-xl-3 row-cols-xxl-4 g-2">
26
+ <div class="row row-cols-2 row-cols-xl-3 row-cols-xxl-4 g-2 mb-5">
27
27
  {{{ if !reputation:disabled }}}
28
28
  <div class="stat">
29
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100">
29
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100">
30
30
  <span class="stat-label text-xs fw-semibold">[[global:reputation]]</span>
31
31
  <span class="fs-2 ff-secondary" title="{reputation}">{humanReadableNumber(reputation)}</span>
32
32
  </div>
33
33
  </div>
34
34
  {{{ end }}}
35
35
  <div class="stat">
36
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100">
36
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100">
37
37
  <span class="stat-label text-xs fw-semibold">[[user:profile-views]]</span>
38
38
  <span class="fs-2 ff-secondary" title="
39
39
  {profileviews}">{humanReadableNumber(profileviews)}</span>
@@ -41,14 +41,14 @@
41
41
  </div>
42
42
 
43
43
  <div class="stat">
44
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
44
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100 gap-2">
45
45
  <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-user-plus"></i> <span>[[user:joined]]</span></span>
46
46
  <span class="timeago fs-6 ff-secondary" title="{joindateISO}"></span>
47
47
  </div>
48
48
  </div>
49
49
 
50
50
  <div class="stat">
51
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
51
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100 gap-2">
52
52
  <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-clock"></i> <span>[[user:lastonline]]</span></span>
53
53
  <span class="timeago text-center text-break w-100 px-2 fs-6 ff-secondary" title="{lastonlineISO}"></span>
54
54
  </div>
@@ -56,38 +56,35 @@
56
56
 
57
57
  {{{ if email }}}
58
58
  <div class="stat">
59
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
59
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100 gap-2">
60
60
  <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-envelope"></i> <span>[[user:email]]</span> {{{ if emailHidden}}}<span class="text-lowercase">([[global:hidden]])</span>{{{ end }}}</span>
61
61
  <span class="text-sm text-center text-break w-100 px-2 ff-secondary">{email}</span>
62
62
  </div>
63
63
  </div>
64
64
  {{{ end }}}
65
65
 
66
- {{{ if websiteName }}}
66
+ {{{ if age }}}
67
67
  <div class="stat">
68
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
69
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-globe"></i> <span>[[user:website]]</span></span>
70
- <a class="text-sm text-center text-break w-100 px-2 ff-secondary text-underline text-reset" href="{websiteLink}" rel="nofollow noreferrer me">{websiteName}</a>
68
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100 gap-2">
69
+ <span class="stat-label text-xs fw-semibold"><span><i class="text-muted fa-solid fa-cake-candles"></i> [[user:age]]</span></span>
70
+ <span class="fs-6 ff-secondary">{age}</span>
71
71
  </div>
72
72
  </div>
73
73
  {{{ end }}}
74
74
 
75
- {{{ if location }}}
75
+ {{{ each customUserFields }}}
76
+ {{{ if ./value }}}
76
77
  <div class="stat">
77
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
78
- <span class="stat-label text-xs fw-semibold"><i class="text-muted fa-solid fa-map-pin"></i> <span>[[user:location]]</span></span>
79
- <span class="text-center text-break w-100 px-2 fs-6 ff-secondary">{location}</span>
78
+ <div class="align-items-center justify-content-center card card-header p-3 border-0 rounded-1 h-100 gap-2">
79
+ <span class="stat-label text-xs fw-semibold"><span><i class="text-muted {./icon}"></i> {./name}</span></span>
80
+ {{{ if (./type == "input-link") }}}
81
+ <a class="text-sm text-center text-break w-100 px-2 ff-secondary text-underline text-reset" href="{./value}" rel="nofollow noreferrer">{./linkValue}</a>
82
+ {{{ else }}}
83
+ <span class="text-center {{{ if (./type == "input-number") }}}fs-2{{{else }}}fs-6{{{ end }}} ff-secondary">{./value}</span>
84
+ {{{ end }}}
80
85
  </div>
81
86
  </div>
82
87
  {{{ end }}}
83
-
84
- {{{ if age }}}
85
- <div class="stat">
86
- <div class="align-items-center justify-content-center card card-header px-0 py-3 border-0 rounded-1 h-100 gap-2">
87
- <span class="stat-label text-xs fw-semibold"><span><i class="text-muted fa-solid fa-cake-candles"></i> [[user:age]]</span></span>
88
- <span class="fs-6 ff-secondary">{age}</span>
89
- </div>
90
- </div>
91
88
  {{{ end }}}
92
89
  </div>
93
90
  </div>
@@ -0,0 +1 @@
1
+ <!-- IMPORT account/topics.tpl -->
@@ -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>
@@ -0,0 +1,20 @@
1
+ <!-- IMPORT partials/account/header.tpl -->
2
+
3
+ <div class="d-flex justify-content-between align-items-center mb-3">
4
+ <div class="d-flex gap-1">
5
+ <h3 class="fw-semibold fs-5">[[pages:account/shares, {username}]]</h3>
6
+ </div>
7
+ </div>
8
+
9
+ {{{ if !topics.length }}}
10
+ <div class="alert alert-warning text-center">{noItemsFoundKey}</div>
11
+ {{{ end }}}
12
+
13
+ <div class="category">
14
+ <!-- IMPORT partials/topics_list.tpl -->
15
+ {{{ if config.usePagination }}}
16
+ <!-- IMPORT partials/paginator.tpl -->
17
+ {{{ end }}}
18
+ </div>
19
+
20
+ <!-- IMPORT partials/account/footer.tpl -->
@@ -2,10 +2,10 @@
2
2
 
3
3
  <div class="d-flex justify-content-between align-items-center mb-3">
4
4
  <div class="d-flex gap-1">
5
- <h3 class="fw-semibold fs-5 mb-0">[[global:topics]]</h3>
5
+ <h3 class="fw-semibold fs-5 mb-0 align-self-center">[[global:topics]]</h3>
6
6
  {{{ if showSort }}}
7
7
  <div class="btn-group bottom-sheet" component="thread/sort">
8
- <button title="[[global:sort]]" class="btn-ghost-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button"><i class="fa-solid fa-arrow-up-wide-short"></i></button>
8
+ <button title="[[global:sort]]" class="btn btn-ghost btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button"><i class="fa-solid fa-arrow-up-wide-short"></i></button>
9
9
  <ul class="dropdown-menu p-1 text-sm" role="menu">
10
10
  {{{each sortOptions }}}
11
11
  <li>
@@ -22,9 +22,10 @@
22
22
 
23
23
  <div class="d-flex gap-1">
24
24
  {{{ if canEdit }}}
25
- <a href="{config.relative_path}/user/{userslug}/topics" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/topics }}}active{{{ end }}}">[[global:header.recent]]</a>
26
- <a href="{config.relative_path}/user/{userslug}/watched"class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/watched }}}active{{{ end }}}">[[user:watched]]</a>
27
- <a href="{config.relative_path}/user/{userslug}/ignored" class="btn-ghost-sm ff-secondary fw-semibold {{{ if template.account/ignored }}}active{{{ end }}}">[[user:ignored]]</a>
25
+ <a href="{config.relative_path}/user/{userslug}/topics" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/topics }}}active{{{ end }}}">[[global:header.recent]]</a>
26
+ <a href="{config.relative_path}/user/{userslug}/watched"class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/watched }}}active{{{ end }}}">[[user:watched]]</a>
27
+ <a href="{config.relative_path}/user/{userslug}/ignored" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/ignored }}}active{{{ end }}}">[[user:ignored]]</a>
28
+ <a href="{config.relative_path}/user/{userslug}/read" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if template.account/read }}}active{{{ end }}}">[[user:read]]</a>
28
29
  {{{ end }}}
29
30
  </div>
30
31
  </div>
@@ -11,6 +11,7 @@
11
11
  <div class="form-check form-switch">
12
12
  <input type="checkbox" class="form-check-input" id="enableBreadcrumbs" name="enableBreadcrumbs" />
13
13
  <label for="enableBreadcrumbs" class="form-check-label">[[themes/harmony:settings.enableBreadcrumbs]]</label>
14
+ <p class="form-text">[[themes/harmony:settings.enableBreadcrumbs.why]]</p>
14
15
  </div>
15
16
  <div class="form-check form-switch">
16
17
  <input type="checkbox" class="form-check-input" id="centerHeaderElements" name="centerHeaderElements" />
@@ -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>
@@ -10,15 +10,15 @@
10
10
  <div class="text-sm d-flex flex-wrap align-items-center gap-2">
11
11
  [[topic:sort-by]]
12
12
  <div class="d-flex gap-2">
13
- <a href="?sort=alpha" class="btn-ghost ff-secondary fw-semibold {{{ if (sort == "alpha") }}}active{{{ end }}}">[[groups:details.group-name]]</a>
14
- <a href="?sort=count" class="btn-ghost ff-secondary fw-semibold {{{ if (sort == "count") }}}active{{{ end }}}">[[groups:details.member-count]]</a>
15
- <a href="?sort=date" class="btn-ghost ff-secondary fw-semibold {{{ if (sort == "date") }}}active{{{ end }}}">[[groups:details.creation-date]]</a>
13
+ <a href="?sort=alpha" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if (sort == "alpha") }}}active{{{ end }}}">[[groups:details.group-name]]</a>
14
+ <a href="?sort=count" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if (sort == "count") }}}active{{{ end }}}">[[groups:details.member-count]]</a>
15
+ <a href="?sort=date" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if (sort == "date") }}}active{{{ end }}}">[[groups:details.creation-date]]</a>
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]]">
@@ -42,7 +42,7 @@
42
42
 
43
43
  <hr />
44
44
 
45
- <div component="groups/container" class="row" id="groups-list" data-nextstart={nextStart}>
45
+ <div component="groups/container" class="row" id="groups-list">
46
46
  {{{ if groups.length }}}
47
47
  <!-- IMPORT partials/groups/list.tpl -->
48
48
  {{{ else }}}
@@ -53,4 +53,6 @@
53
53
  </div>
54
54
  {{{ end }}}
55
55
  </div>
56
+
57
+ <!-- IMPORT partials/paginator.tpl -->
56
58
  </div>
@@ -12,7 +12,7 @@
12
12
  {{{ if ./separator }}}
13
13
  <hr/>
14
14
  {{{ else }}}
15
- <a class="btn-ghost ff-secondary fw-semibold {{{ if ./selected }}}active{{{ end }}}" href="{config.relative_path}/notifications?filter={./filter}">
15
+ <a class="btn btn-ghost d-flex gap-2 text-start text-sm ff-secondary fw-semibold {{{ if ./selected }}}active{{{ end }}}" href="{config.relative_path}/notifications?filter={./filter}">
16
16
  <div class="flex-grow-1">{filters.name}</div>
17
17
  <span class="flex-shrink-0 text-xs" title="{./count}">{humanReadableNumber(./count)}</span>
18
18
  </a>