nodebb-theme-persona 13.2.4 → 13.2.6
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/scss/topic.scss +0 -3
- package/templates/account/profile.tpl +5 -5
- package/templates/login.tpl +3 -4
- 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/tags_list.tpl +1 -1
- package/templates/partials/topic/navigator.tpl +3 -3
- 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
package/scss/topic.scss
CHANGED
|
@@ -454,7 +454,6 @@
|
|
|
454
454
|
|
|
455
455
|
.pagination-block {
|
|
456
456
|
position: fixed;
|
|
457
|
-
background-color: $gray-200;
|
|
458
457
|
bottom: 0px;
|
|
459
458
|
right: 0px;
|
|
460
459
|
z-index: 100;
|
|
@@ -462,7 +461,6 @@
|
|
|
462
461
|
opacity: 0;
|
|
463
462
|
|
|
464
463
|
.pagination-text {
|
|
465
|
-
color: $text-muted;
|
|
466
464
|
position: relative;
|
|
467
465
|
top: -3px;
|
|
468
466
|
font-weight: bolder;
|
|
@@ -527,7 +525,6 @@
|
|
|
527
525
|
}
|
|
528
526
|
}
|
|
529
527
|
.progress-bar {
|
|
530
|
-
background-color: $info;
|
|
531
528
|
display:block;
|
|
532
529
|
z-index: -1;
|
|
533
530
|
position: absolute;
|
|
@@ -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>
|
package/templates/login.tpl
CHANGED
|
@@ -34,10 +34,9 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
<div class="row mb-2">
|
|
36
36
|
<div class="col-lg-10 offset-lg-2">
|
|
37
|
-
<div class="
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
</label>
|
|
37
|
+
<div class="form-check">
|
|
38
|
+
<input class="form-check-input" type="checkbox" name="remember" id="remember" checked />
|
|
39
|
+
<label class="form-check-label" for="remember">[[login:remember_me]]</label>
|
|
41
40
|
</div>
|
|
42
41
|
</div>
|
|
43
42
|
</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,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,9 +1,9 @@
|
|
|
1
|
-
<div class="pagination-block text-center">
|
|
2
|
-
<div class="progress-bar"></div>
|
|
1
|
+
<div class="pagination-block border border-1 text-bg-light text-center">
|
|
2
|
+
<div class="progress-bar bg-info"></div>
|
|
3
3
|
<div class="wrapper dropup">
|
|
4
4
|
<i class="fa fa-2x fa-angle-double-up pointer fa-fw pagetop"></i>
|
|
5
5
|
|
|
6
|
-
<a href="#" class="dropdown-toggle d-inline-block" data-bs-toggle="dropdown" data-bs-reference="parent">
|
|
6
|
+
<a href="#" class="dropdown-toggle d-inline-block text-decoration-none" data-bs-toggle="dropdown" data-bs-reference="parent">
|
|
7
7
|
<span class="pagination-text"></span>
|
|
8
8
|
</a>
|
|
9
9
|
|
|
@@ -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>
|