nodebb-theme-harmony 3.1.13 → 3.1.15
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 +2 -2
- package/scss/skins.scss +1 -1
- package/templates/account/info.tpl +9 -7
- package/templates/partials/account/header.tpl +1 -1
- package/templates/partials/categories/lastpost.tpl +1 -1
- package/templates/partials/posts_list_item.tpl +1 -1
- package/templates/partials/topic/navigation-post.tpl +1 -1
- package/templates/partials/topic/post.tpl +3 -3
- package/templates/partials/topics_list.tpl +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-harmony",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.15",
|
|
4
4
|
"nbbpm": {
|
|
5
5
|
"compatibility": "^4.14.0"
|
|
6
6
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@fontsource/poppins": "5.2.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"eslint": "10.8.
|
|
48
|
+
"eslint": "10.8.1",
|
|
49
49
|
"eslint-config-nodebb": "^2.0.2"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/scss/skins.scss
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
background-color: transparent!important;
|
|
19
19
|
backdrop-filter: blur(5px);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
.account .avatar-wrapper.bg-body {
|
|
22
22
|
background: linear-gradient(90deg, rgb(51.3, 182.7, 225.9), rgb(93.6, 98.1, 175.5), rgb(220.4, 47.5, 124.45));
|
|
23
23
|
background-attachment: fixed;
|
|
24
24
|
}
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
</div>
|
|
225
225
|
|
|
226
226
|
<div class="col-sm-6 mb-3">
|
|
227
|
-
{{{ if
|
|
227
|
+
{{{ if isAdminOrGlobalModeratorOrModerator }}}
|
|
228
228
|
<div class="card">
|
|
229
229
|
<h5 class="card-header">
|
|
230
230
|
{{tx("user:info.moderation-note")}}
|
|
@@ -236,10 +236,8 @@
|
|
|
236
236
|
<br/>
|
|
237
237
|
<div component="account/moderation-note/list">
|
|
238
238
|
{{{ each moderationNotes }}}
|
|
239
|
-
<
|
|
240
|
-
|
|
241
|
-
<div data-id="{./id}">
|
|
242
|
-
<div class="d-flex align-items-baseline gap-1 mb-1">
|
|
239
|
+
<div data-id="{./id}" class="border-bottom pb-3 mb-3">
|
|
240
|
+
<div class="d-flex align-items-baseline gap-2 mb-1">
|
|
243
241
|
<a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{{buildAvatar(./user, "24px", true)}}</a>
|
|
244
242
|
|
|
245
243
|
<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>
|
|
@@ -247,12 +245,16 @@
|
|
|
247
245
|
<span class="timeago text-sm text-secondary" title="{./timestampISO}"></span>
|
|
248
246
|
</div>
|
|
249
247
|
|
|
250
|
-
|
|
251
248
|
<div component="account/moderation-note/content-area" class="d-flex flex-column">
|
|
252
249
|
<div class="content text-secondary">
|
|
253
250
|
{{txEscape(./note)}}
|
|
254
251
|
</div>
|
|
255
|
-
|
|
252
|
+
{{{ if isAdmin }}}
|
|
253
|
+
<div class="d-flex gap-1 justify-content-end">
|
|
254
|
+
<button component="account/moderation-note/delete" class="btn btn-sm btn-link text-danger align-self-end">{{tx("topic:delete")}}</button>
|
|
255
|
+
<button component="account/moderation-note/edit" class="btn btn-sm btn-link align-self-end">{{tx("topic:edit")}}</button>
|
|
256
|
+
</div>
|
|
257
|
+
{{{ end }}}
|
|
256
258
|
</div>
|
|
257
259
|
|
|
258
260
|
<div component="account/moderation-note/edit-area" class="d-flex flex-column gap-2 hidden">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<div class="d-flex flex-column flex-md-row gap-2 w-100 pb-4 mb-4 mt-2 border-bottom">
|
|
17
|
-
<div
|
|
17
|
+
<div class="avatar-wrapper bg-body rounded-circle position-relative align-self-center align-self-md-start hover-parent" style="margin-top: -75px; padding: 4px;">
|
|
18
18
|
{{buildAvatar(@value, "142px", true)}}
|
|
19
19
|
{{{ if (allowProfilePicture && isSelfOrAdminOrGlobalModerator)}}}
|
|
20
20
|
<a href="#" component="profile/change/picture" class="d-none d-md-block pointer p-2 rounded-1 text-bg-light position-absolute top-50 start-50 translate-middle hover-opacity-75">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{{ if @first }}}
|
|
4
4
|
<div component="category/posts" class="ps-2 text-xs d-flex flex-column h-100 gap-1">
|
|
5
5
|
<div class="text-nowrap text-truncate">
|
|
6
|
-
<a class="text-decoration-none avatar-tooltip" title="{./user
|
|
6
|
+
<a class="text-decoration-none avatar-tooltip" title="{{txDisplayname(./user)}}" href="{config.relative_path}/user/{./user.userslug}">{{buildAvatar(posts.user, "18px", true)}}</a>
|
|
7
7
|
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" title="{./timestampISO}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="d-flex gap-2 post-info text-sm align-items-center">
|
|
9
9
|
<div class="post-author d-flex align-items-center gap-1">
|
|
10
10
|
<a class="lh-1 text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{{buildAvatar(./user, "16px", true, "not-responsive")}}</a>
|
|
11
|
-
<a class="lh-1 fw-semibold" href="{config.relative_path}/user/{./user.userslug}">{
|
|
11
|
+
<a class="lh-1 fw-semibold" href="{config.relative_path}/user/{./user.userslug}">{{txDisplayname(./user)}}</a>
|
|
12
12
|
</div>
|
|
13
13
|
<span class="timeago text-muted lh-1" title="{./timestampISO}"></span>
|
|
14
14
|
</div>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{buildAvatar(post.user, "24px", true)}}
|
|
4
4
|
</div>
|
|
5
5
|
<div class="text-truncate">
|
|
6
|
-
<a href="{{{ if post.user.userslug }}}{config.relative_path}/user/{post.user.userslug}{{{else }}}#{{{ end }}}">{post.user
|
|
6
|
+
<a href="{{{ if post.user.userslug }}}{config.relative_path}/user/{post.user.userslug}{{{else }}}#{{{ end }}}">{{txDisplayname(post.user)}}</a>
|
|
7
7
|
</div>
|
|
8
8
|
<span class="timeago text-nowrap text-muted" title="{post.timestampISO}"></span>
|
|
9
9
|
</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{{{ end }}}
|
|
11
11
|
<div class="d-flex align-items-start gap-3 post-container-parent">
|
|
12
12
|
<div class="bg-body d-none d-sm-block rounded-circle" style="box-shadow: 0 0 0 3px var(--bs-body-bg);">
|
|
13
|
-
<a class="d-inline-block position-relative text-decoration-none" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" aria-label="{{tx("aria:profile-page-for", txEscape(./user
|
|
13
|
+
<a class="d-inline-block position-relative text-decoration-none" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" aria-label="{{tx("aria:profile-page-for", txEscape(txDisplayname(./user)))}}">
|
|
14
14
|
{{buildAvatar(posts.user, "48px", true, "", "user/picture")}}
|
|
15
15
|
{{{ if ./user.isLocal }}}
|
|
16
16
|
<span component="user/status" class="position-absolute top-100 start-100 border border-white border-2 rounded-circle status {posts.user.status}"><span class="visually-hidden">{{tx(concat("global:", posts.user.status))}}</span></span>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class="post-container d-flex gap-2 flex-grow-1 flex-column w-100" style="min-width:0;">
|
|
26
26
|
<div class="d-flex align-items-start justify-content-between gap-1 flex-nowrap w-100 post-header" itemprop="author" itemscope itemtype="https://schema.org/Person">
|
|
27
27
|
<div class="d-flex gap-1 flex-wrap align-items-center text-truncate">
|
|
28
|
-
<meta itemprop="name" content="{./user
|
|
28
|
+
<meta itemprop="name" content="{{txDisplayname(./user)}}">
|
|
29
29
|
{{{ if ./user.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{./user.userslug}">{{{ end }}}
|
|
30
30
|
|
|
31
31
|
<div class="d-flex flex-nowrap gap-1 align-items-center text-truncate">
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</a>
|
|
44
44
|
</div>
|
|
45
45
|
|
|
46
|
-
<a class="fw-bold text-nowrap text-truncate" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user
|
|
46
|
+
<a class="fw-bold text-nowrap text-truncate" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{{txDisplayname(posts.user)}}</a>
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
{{{ each posts.user.selectedGroups }}}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<div class="d-flex p-0 col-12 col-lg-7 gap-2 gap-lg-3 pe-2 align-items-start {{{ if config.theme.mobileTopicTeasers }}}mb-2 mb-lg-0{{{ end }}}">
|
|
12
12
|
<div class="flex-shrink-0 position-relative">
|
|
13
|
-
<a class="d-inline-block text-decoration-none avatar-tooltip" title="{./user
|
|
13
|
+
<a class="d-inline-block text-decoration-none avatar-tooltip" title="{{txDisplayname(./user)}}" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">
|
|
14
14
|
{{buildAvatar(./user, "40px", true)}}
|
|
15
15
|
</a>
|
|
16
16
|
{{{ if showSelect }}}
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
{{{ else }}}
|
|
116
116
|
{{{ if ./teaser.pid }}}
|
|
117
117
|
<div class="ps-2">
|
|
118
|
-
<a href="{{{ if ./teaser.user.userslug }}}{config.relative_path}/user/{./teaser.user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none avatar-tooltip" title="{./teaser.user
|
|
118
|
+
<a href="{{{ if ./teaser.user.userslug }}}{config.relative_path}/user/{./teaser.user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none avatar-tooltip" title="{{txDisplayname(./teaser.user)}}">{{buildAvatar(./teaser.user, "18px", true)}}</a>
|
|
119
119
|
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" title="{./teaser.timestampISO}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
120
120
|
</div>
|
|
121
121
|
<div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
|