nodebb-theme-persona 15.1.8 → 15.2.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.
- package/package.json +2 -2
- package/public/modules/taskbar.js +2 -2
- package/templates/account/info.tpl +9 -6
- package/templates/account/profile.tpl +1 -1
- package/templates/partials/categories/lastpost.tpl +2 -2
- package/templates/partials/posts_list_item.tpl +2 -2
- package/templates/partials/search/results.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 +3 -3
package/package.json
CHANGED
|
@@ -35,8 +35,8 @@ define('persona/taskbar', [
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
function createChatIcon(data) {
|
|
38
|
-
$.getJSON(config.relative_path
|
|
39
|
-
const el = $(
|
|
38
|
+
$.getJSON(`${config.relative_path}/api/user/${app.user.userslug}/chats/${data.options.roomId}`, function (chatObj) {
|
|
39
|
+
const el = $(`#taskbar [data-uuid="${data.uuid}"] a`);
|
|
40
40
|
el.parent('[data-uuid]').attr('data-roomId', data.options.roomId);
|
|
41
41
|
|
|
42
42
|
if (chatObj.users.length === 2) {
|
|
@@ -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>
|
|
@@ -252,7 +250,12 @@
|
|
|
252
250
|
<div class="content text-secondary">
|
|
253
251
|
{./note}
|
|
254
252
|
</div>
|
|
255
|
-
|
|
253
|
+
{{{ if isAdmin }}}
|
|
254
|
+
<div class="d-flex gap-1 justify-content-end">
|
|
255
|
+
<button component="account/moderation-note/delete" class="btn btn-sm btn-link text-danger align-self-end">{{tx("topic:delete")}}</button>
|
|
256
|
+
<button component="account/moderation-note/edit" class="btn btn-sm btn-link align-self-end">{{tx("topic:edit")}}</button>
|
|
257
|
+
</div>
|
|
258
|
+
{{{ end }}}
|
|
256
259
|
</div>
|
|
257
260
|
|
|
258
261
|
<div component="account/moderation-note/edit-area" class="d-flex flex-column gap-2 hidden">
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
{{{ end }}}
|
|
37
37
|
|
|
38
38
|
<!-- IF aboutme -->
|
|
39
|
-
<div component="aboutme" class="text-center aboutme text-secondary w-75 mx-auto text-center">{{
|
|
39
|
+
<div component="aboutme" class="text-center aboutme text-secondary w-75 mx-auto text-center">{{aboutmeParsed}}</div>
|
|
40
40
|
<!-- ENDIF aboutme -->
|
|
41
41
|
|
|
42
42
|
<div class="account-stats fs-1 text-center mb-3">
|
|
@@ -3,12 +3,12 @@
|
|
|
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">
|
|
10
10
|
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
11
|
-
{{
|
|
11
|
+
{{./content}}
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
14
|
{{{ end }}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</a>
|
|
6
6
|
|
|
7
7
|
<div component="post/content" class="content mb-3 text-break">
|
|
8
|
-
{{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{
|
|
8
|
+
{{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{./content}}{{{ end }}}
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
<div class="mb-3">
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<a href="{config.relative_path}/user/{./user.userslug}">{{buildAvatar(./user, "28px", true, "user-img not-responsive")}}</a>
|
|
27
27
|
|
|
28
28
|
<div class="post-author text-secondary text-uppercase">
|
|
29
|
-
<a class="text-reset" href="{config.relative_path}/user/{./user.userslug}">{./user
|
|
29
|
+
<a class="text-reset" href="{config.relative_path}/user/{./user.userslug}">{{txDisplayname(./user)}}</a><br />
|
|
30
30
|
<span class="timeago" title="{./timestampISO}"></span>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<strong class="text-nowrap" itemprop="author" itemscope itemtype="https://schema.org/Person">
|
|
27
27
|
<meta itemprop="name" content="{./user.username}">
|
|
28
28
|
{{{ if ./user.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{./user.userslug}">{{{ end }}}
|
|
29
|
-
<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user
|
|
29
|
+
<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{{txDisplayname(posts.user)}}</a>
|
|
30
30
|
</strong>
|
|
31
31
|
|
|
32
32
|
{{{ each posts.user.selectedGroups }}}
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
<br />
|
|
73
73
|
|
|
74
74
|
<div class="content" component="post/content" itemprop="text">
|
|
75
|
-
{{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{
|
|
75
|
+
{{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{posts.content}}{{{ end }}}
|
|
76
76
|
</div>
|
|
77
77
|
|
|
78
78
|
<div class="post-footer">
|
|
79
79
|
{{{ if posts.user.signature }}}
|
|
80
|
-
<div component="post/signature" data-uid="{posts.user.uid}" class="post-signature">{{
|
|
80
|
+
<div component="post/signature" data-uid="{posts.user.uid}" class="post-signature">{{posts.user.signature}}</div>
|
|
81
81
|
{{{ end }}}
|
|
82
82
|
|
|
83
83
|
<div class="clearfix">
|
|
@@ -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-1 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 }}}
|
|
@@ -116,12 +116,12 @@
|
|
|
116
116
|
{{{ else }}}
|
|
117
117
|
{{{ if ./teaser.pid }}}
|
|
118
118
|
<div class="ps-2">
|
|
119
|
-
<a href="{{{ if ./teaser.user.userslug }}}{config.relative_path}/user/{./teaser.user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none avatar-tooltip" title="{./teaser.user
|
|
119
|
+
<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>
|
|
120
120
|
<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>
|
|
121
121
|
</div>
|
|
122
122
|
<div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
|
|
123
123
|
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="{{tx("global:lastpost")}}"></a>
|
|
124
|
-
{{
|
|
124
|
+
{{./teaser.content}}
|
|
125
125
|
</div>
|
|
126
126
|
{{{ end }}}
|
|
127
127
|
{{{ end }}}
|