nodebb-theme-persona 13.2.5 → 13.2.7
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 +1 -1
- package/public/persona.js +0 -1
- package/templates/account/profile.tpl +5 -5
- package/templates/modules/usercard.tpl +2 -2
- package/templates/partials/account/menu.tpl +15 -15
- package/templates/partials/categories/item.tpl +4 -4
- package/templates/partials/chats/options.tpl +35 -2
- package/templates/partials/tags_list.tpl +1 -1
- package/templates/partials/topic/stats.tpl +3 -3
- package/templates/partials/topics_list.tpl +4 -4
- package/templates/partials/users_list.tpl +3 -3
package/package.json
CHANGED
package/public/persona.js
CHANGED
|
@@ -34,28 +34,28 @@
|
|
|
34
34
|
<div class="account-stats">
|
|
35
35
|
<!-- IF !reputation:disabled -->
|
|
36
36
|
<div class="stat">
|
|
37
|
-
<div
|
|
37
|
+
<div title="{reputation}">{humanReadableNumber(reputation)}</div>
|
|
38
38
|
<span class="stat-label">[[global:reputation]]</span>
|
|
39
39
|
</div>
|
|
40
40
|
<!-- ENDIF !reputation:disabled -->
|
|
41
41
|
|
|
42
42
|
<div class="stat">
|
|
43
|
-
<div
|
|
43
|
+
<div title="{profileviews}">{humanReadableNumber(profileviews)}</div>
|
|
44
44
|
<span class="stat-label">[[user:profile_views]]</span>
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<div class="stat">
|
|
48
|
-
<div><a
|
|
48
|
+
<div><a title="{counts.posts}" href="{config.relative_path}/user/{userslug}/posts">{humanReadableNumber(counts.posts)}</a></div>
|
|
49
49
|
<span class="stat-label">[[global:posts]]</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
<div class="stat">
|
|
53
|
-
<div><a
|
|
53
|
+
<div><a title="{counts.followers}" href="{config.relative_path}/user/{userslug}/followers">{humanReadableNumber(counts.followers)}</a></div>
|
|
54
54
|
<span class="stat-label">[[user:followers]]</span>
|
|
55
55
|
</div>
|
|
56
56
|
|
|
57
57
|
<div class="stat">
|
|
58
|
-
<div><a
|
|
58
|
+
<div><a title="{counts.following}" href="{config.relative_path}/user/{userslug}/following">{humanReadableNumber(counts.following)}</a></div>
|
|
59
59
|
<span class="stat-label">[[user:following]]</span>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
<div class="row usercard-info">
|
|
19
19
|
<div class="col-4">
|
|
20
20
|
<small>[[global:posts]]</small>
|
|
21
|
-
<span
|
|
21
|
+
<span>{humanReadableNumber(postcount)}</span>
|
|
22
22
|
</div>
|
|
23
23
|
<div class="col-4">
|
|
24
24
|
<small>[[global:reputation]]</small>
|
|
25
|
-
<span
|
|
25
|
+
<span>{humanReadableNumber(reputation)}</span>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
28
|
<button class="btn-morph persona-fab <!-- IF banned --> hide<!-- ENDIF banned -->">
|
|
@@ -66,32 +66,32 @@
|
|
|
66
66
|
<!-- ENDIF !isSelf -->
|
|
67
67
|
|
|
68
68
|
<li role="separator" class="dropdown-divider"></li>
|
|
69
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/following">[[user:following]] <span class="badge bg-secondary
|
|
70
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/followers">[[user:followers]] <span class="badge bg-secondary
|
|
69
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/following">[[user:following]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.following}">{formattedNumber(counts.following)}</span></a></li>
|
|
70
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/followers">[[user:followers]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.followers}">{formattedNumber(counts.followers)}</span></a></li>
|
|
71
71
|
<!-- IF canEdit -->
|
|
72
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/blocks">[[user:blocks]] <span class="badge bg-secondary
|
|
72
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/blocks">[[user:blocks]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.blocks}">{formattedNumber(counts.blocks)}</span></a></li>
|
|
73
73
|
<!-- ENDIF canEdit -->
|
|
74
74
|
<li role="separator" class="dropdown-divider"></li>
|
|
75
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/topics">[[global:topics]] <span class="badge bg-secondary
|
|
76
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/posts">[[global:posts]] <span class="badge bg-secondary
|
|
75
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/topics">[[global:topics]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.topics}">{formattedNumber(counts.topics)}</span></a></li>
|
|
76
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/posts">[[global:posts]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.posts}">{formattedNumber(counts.posts)}</span></a></li>
|
|
77
77
|
<!-- IF !reputation:disabled -->
|
|
78
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/best">[[global:best]] <span class="badge bg-secondary
|
|
79
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/controversial">[[global:controversial]] <span class="badge bg-secondary
|
|
78
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/best">[[global:best]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.best}">{formattedNumber(counts.best)}</span></a></li>
|
|
79
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/controversial">[[global:controversial]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.controversial}">{formattedNumber(counts.controversial)}</span></a></li>
|
|
80
80
|
<!-- ENDIF !reputation:disabled -->
|
|
81
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/groups">[[global:header.groups]] <span class="badge bg-secondary
|
|
81
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/groups">[[global:header.groups]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.groups}">{formattedNumber(counts.groups)}</span></a></li>
|
|
82
82
|
|
|
83
83
|
<!-- IF canEdit -->
|
|
84
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/categories">[[user:watched_categories]] <span class="badge bg-secondary
|
|
85
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/bookmarks">[[user:bookmarks]] <span class="badge bg-secondary
|
|
86
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/watched">[[user:watched]] <span class="badge bg-secondary
|
|
87
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/ignored">[[user:ignored]] <span class="badge bg-secondary
|
|
84
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/categories">[[user:watched_categories]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.categoriesWatched}">{formattedNumber(counts.categoriesWatched)}</span></a></li>
|
|
85
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/bookmarks">[[user:bookmarks]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.bookmarks}">{formattedNumber(counts.bookmarks)}</span></a></li>
|
|
86
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/watched">[[user:watched]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.watched}">{formattedNumber(counts.watched)}</span></a></li>
|
|
87
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/ignored">[[user:ignored]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.ignored}">{formattedNumber(counts.ignored)}</span></a></li>
|
|
88
88
|
<!-- IF !reputation:disabled -->
|
|
89
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/upvoted">[[global:upvoted]] <span class="badge bg-secondary
|
|
89
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/upvoted">[[global:upvoted]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.upvoted}">{formattedNumber(counts.upvoted)}</span></a></li>
|
|
90
90
|
<!-- IF !downvote:disabled -->
|
|
91
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/downvoted">[[global:downvoted]] <span class="badge bg-secondary
|
|
91
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/downvoted">[[global:downvoted]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.downvoted}">{formattedNumber(counts.downvoted)}</span></a></li>
|
|
92
92
|
<!-- ENDIF !downvote:disabled -->
|
|
93
93
|
<!-- ENDIF !reputation:disabled -->
|
|
94
|
-
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/uploads">[[global:uploads]] <span class="badge bg-secondary
|
|
94
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/uploads">[[global:uploads]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.uploaded}">{formattedNumber(counts.uploaded)}</span></a></li>
|
|
95
95
|
<!-- ENDIF canEdit -->
|
|
96
96
|
|
|
97
97
|
{{{each profile_links}}}
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
|
-
<!-- IF
|
|
45
|
+
<!-- IF !./link -->
|
|
46
46
|
<div class="col-md-1 d-none d-md-block stats text-muted">
|
|
47
|
-
<span
|
|
47
|
+
<span title="{./totalTopicCount}">{humanReadableNumber(./totalTopicCount)}</span><br />
|
|
48
48
|
<small>[[global:topics]]</small>
|
|
49
49
|
</div>
|
|
50
50
|
<div class="col-md-1 d-none d-md-block stats text-muted">
|
|
51
|
-
<span
|
|
51
|
+
<span title="{./totalPostCount}">{humanReadableNumber(./totalPostCount)}</span><br />
|
|
52
52
|
<small>[[global:posts]]</small>
|
|
53
53
|
</div>
|
|
54
54
|
<!-- IF !config.hideCategoryLastPost -->
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
<!-- IMPORT partials/categories/lastpost.tpl -->
|
|
57
57
|
</div>
|
|
58
58
|
<!-- ENDIF !config.hideCategoryLastPost -->
|
|
59
|
-
<!-- ENDIF
|
|
59
|
+
<!-- ENDIF !./link -->
|
|
60
60
|
</li>
|
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
<div class="d-flex gap-1 align-items-stretch">
|
|
2
|
-
|
|
2
|
+
<!-- notification dropdown -->
|
|
3
|
+
<div class="dropdown d-flex" data-manual-tooltip="1" title="[[modules:chat.notification-settings]]">
|
|
4
|
+
<button class="btn btn-sm btn-light position-relative" data-bs-toggle="dropdown">
|
|
5
|
+
<i class="fa fa-bell text-muted"></i>
|
|
6
|
+
<span class="position-absolute top-0 end-0 text-xs text-muted opacity-75" style="font-size: 10px!important; padding: 1px; line-height: 10px;">
|
|
7
|
+
<i component="chat/notification/setting/icon" class="fa {notificationOptionsIcon}"></i>
|
|
8
|
+
</span>
|
|
9
|
+
</button>
|
|
10
|
+
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" component="chat/notification/setting">
|
|
11
|
+
{{{ each notificationOptions }}}
|
|
12
|
+
<li>
|
|
13
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-value="{./value}" data-icon="{./icon}">
|
|
14
|
+
<div class="d-flex flex-column gap-1">
|
|
15
|
+
<div class="d-flex align-items-center gap-2">
|
|
16
|
+
<div class="flex-grow-1">{./label}</div>
|
|
17
|
+
<i class="flex-shrink-0 fa fa-fw fa-check {{{ if !./selected }}}hidden{{{ end }}}"></i>
|
|
18
|
+
</div>
|
|
19
|
+
{{{ if @first}}}
|
|
20
|
+
<div component="chat/notification/setting/sub-label" class="text-sm text-muted">{./subLabel}</div>
|
|
21
|
+
{{{ end }}}
|
|
22
|
+
</div>
|
|
23
|
+
</a>
|
|
24
|
+
</li>
|
|
25
|
+
|
|
26
|
+
{{{ if @first }}}
|
|
27
|
+
<li><hr class="dropdown-divider"></li>
|
|
28
|
+
{{{ end }}}
|
|
29
|
+
{{{ end }}}
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<div class="dropdown d-flex" data-manual-tooltip="1" title="[[modules:chat.options]]">
|
|
3
37
|
<button class="btn btn-sm btn-light" data-bs-toggle="dropdown" component="chat/controlsToggle">
|
|
4
38
|
<i class="fa fa-gear text-muted"></i>
|
|
5
39
|
</button>
|
|
6
40
|
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" component="chat/controls">
|
|
7
|
-
<li class="dropdown-header">[[modules:chat.options]]</li>
|
|
8
41
|
<li>
|
|
9
42
|
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-action="members">
|
|
10
43
|
<i class="fa fa-fw text-muted fa-cog"></i> [[modules:chat.manage-room]]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{{each tags}}}
|
|
2
2
|
<h5 class="float-start tag-container me-4 mb-4 fw-bold">
|
|
3
|
-
<a href="{config.relative_path}/tags/{tags.valueEncoded}" data-tag="{tags.valueEscaped}"><span class="tag-item text-muted text-uppercase text-nowrap tag-class-{tags.class} me-2" data-tag="{tags.valueEscaped}">{tags.valueEscaped}</span><span class="tag-topic-count text-primary text-nowrap
|
|
3
|
+
<a href="{config.relative_path}/tags/{tags.valueEncoded}" data-tag="{tags.valueEscaped}"><span class="tag-item text-muted text-uppercase text-nowrap tag-class-{tags.class} me-2" data-tag="{tags.valueEscaped}">{tags.valueEscaped}</span><span class="tag-topic-count text-primary text-nowrap" title="{tags.score}">{formattedNumber(tags.score)}</span></a>
|
|
4
4
|
</h5>
|
|
5
5
|
{{{end}}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div class="stats text-muted">
|
|
2
2
|
<i class="fa fa-fw fa-user" title="[[global:posters]]"></i>
|
|
3
|
-
<span title="{postercount}"
|
|
3
|
+
<span title="{postercount}">{humanReadableNumber(postercount)}</span>
|
|
4
4
|
</div>
|
|
5
5
|
<div class="stats text-muted">
|
|
6
6
|
<i class="fa fa-fw fa-pencil" title="[[global:posts]]"></i>
|
|
7
|
-
<span component="topic/post-count" title="{postcount}"
|
|
7
|
+
<span component="topic/post-count" title="{postcount}">{humanReadableNumber(postcount)}</span>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="stats text-muted">
|
|
10
10
|
<i class="fa fa-fw fa-eye" title="[[global:views]]"></i>
|
|
11
|
-
<span
|
|
11
|
+
<span title="{viewcount}">{humanReadableNumber(viewcount)}</span>
|
|
12
12
|
</div>
|
|
@@ -68,23 +68,23 @@
|
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
<div class="mobile-stat col-2 visible-xs text-end">
|
|
71
|
-
<span
|
|
71
|
+
<span>{humanReadableNumber(topics.postcount)}</span> <a href="{config.relative_path}/topic/{topics.slug}/{topics.teaser.index}"><i class="fa fa-arrow-circle-right"></i></a>
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
74
|
<div class="col-md-1 hidden-sm hidden-xs stats stats-votes">
|
|
75
75
|
<!-- IF !reputation:disabled -->
|
|
76
|
-
<span
|
|
76
|
+
<span title="{topics.votes}">{humanReadableNumber(topics.votes)}</span><br />
|
|
77
77
|
<small>[[global:votes]]</small>
|
|
78
78
|
<!-- END -->
|
|
79
79
|
</div>
|
|
80
80
|
|
|
81
81
|
<div class="col-md-1 hidden-sm hidden-xs stats stats-postcount">
|
|
82
|
-
<span
|
|
82
|
+
<span title="{topics.postcount}">{humanReadableNumber(topics.postcount)}</span><br />
|
|
83
83
|
<small>[[global:posts]]</small>
|
|
84
84
|
</div>
|
|
85
85
|
|
|
86
86
|
<div class="col-md-1 hidden-sm hidden-xs stats stats-viewcount">
|
|
87
|
-
<span
|
|
87
|
+
<span title="{topics.viewcount}">{humanReadableNumber(topics.viewcount)}</span><br />
|
|
88
88
|
<small>[[global:views]]</small>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
<!-- IF section_sort-reputation -->
|
|
26
26
|
<div class="reputation">
|
|
27
27
|
<i class="fa fa-star"></i>
|
|
28
|
-
<span
|
|
28
|
+
<span>{formattedNumber(users.reputation)}</span>
|
|
29
29
|
</div>
|
|
30
30
|
<!-- ENDIF section_sort-reputation -->
|
|
31
31
|
|
|
32
32
|
<!-- IF section_sort-posts -->
|
|
33
33
|
<div class="post-count">
|
|
34
34
|
<i class="fa fa-pencil"></i>
|
|
35
|
-
<span
|
|
35
|
+
<span>{formattedNumber(users.postcount)}</span>
|
|
36
36
|
</div>
|
|
37
37
|
<!-- ENDIF section_sort-posts -->
|
|
38
38
|
|
|
39
39
|
<!-- IF section_flagged -->
|
|
40
40
|
<div class="flag-count">
|
|
41
41
|
<i class="fa fa-flag"></i>
|
|
42
|
-
<span><a
|
|
42
|
+
<span><a href="{config.relative_path}/flags?targetUid={users.uid}">{users.flags}</a></span>
|
|
43
43
|
</div>
|
|
44
44
|
<!-- ENDIF section_flagged -->
|
|
45
45
|
</div>
|