nodebb-theme-persona 13.2.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.2.5",
3
+ "version": "13.2.6",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.3.0"
6
6
  },
package/public/persona.js CHANGED
@@ -202,7 +202,6 @@ $(document).ready(function () {
202
202
  }
203
203
  }
204
204
 
205
- utils.makeNumbersHumanReadable(card.find('.human-readable-number'));
206
205
  setupCardRemoval(card);
207
206
  card.fadeIn();
208
207
  });
@@ -34,28 +34,28 @@
34
34
  <div class="account-stats">
35
35
  <!-- IF !reputation:disabled -->
36
36
  <div class="stat">
37
- <div class="human-readable-number" title="{reputation}">{reputation}</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 class="human-readable-number" title="{profileviews}">{profileviews}</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 class="human-readable-number" title="{counts.posts}" href="{config.relative_path}/user/{userslug}/posts">{counts.posts}</a></div>
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 class="human-readable-number" title="{counts.followers}" href="{config.relative_path}/user/{userslug}/followers">{counts.followers}</a></div>
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 class="human-readable-number" title="{counts.following}" href="{config.relative_path}/user/{userslug}/following">{counts.following}</a></div>
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 class="human-readable-number">{postcount}</span>
21
+ <span>{humanReadableNumber(postcount)}</span>
22
22
  </div>
23
23
  <div class="col-4">
24
24
  <small>[[global:reputation]]</small>
25
- <span class="human-readable-number">{reputation}</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 formatted-number rounded-pill ms-2" title="{counts.following}">{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 formatted-number rounded-pill ms-2" title="{counts.followers}">{counts.followers}</span></a></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 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 formatted-number rounded-pill ms-2" title="{counts.blocks}">{counts.blocks}</span></a></li>
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 formatted-number rounded-pill ms-2" title="{counts.topics}">{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 formatted-number rounded-pill ms-2" title="{counts.posts}">{counts.posts}</span></a></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 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 formatted-number rounded-pill ms-2" title="{counts.best}">{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 formatted-number rounded-pill ms-2" title="{counts.controversial}">{counts.controversial}</span></a></li>
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 formatted-number rounded-pill ms-2" title="{counts.groups}">{counts.groups}</span></a></li>
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 formatted-number rounded-pill ms-2" title="{counts.categoriesWatched}">{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 formatted-number rounded-pill ms-2" title="{counts.bookmarks}">{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 formatted-number rounded-pill ms-2" title="{counts.watched}">{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 formatted-number rounded-pill ms-2" title="{counts.ignored}">{counts.ignored}</span></a></li>
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 formatted-number rounded-pill ms-2" title="{counts.upvoted}">{counts.upvoted}</span></a></li>
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 formatted-number rounded-pill ms-2" title="{counts.downvoted}">{counts.downvoted}</span></a></li>
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 formatted-number rounded-pill ms-2" title="{counts.uploaded}">{counts.uploaded}</span></a></li>
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 !../link -->
45
+ <!-- IF !./link -->
46
46
  <div class="col-md-1 d-none d-md-block stats text-muted">
47
- <span class="human-readable-number" title="{../totalTopicCount}">{../totalTopicCount}</span><br />
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 class="human-readable-number" title="{../totalPostCount}">{../totalPostCount}</span><br />
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 !../link -->
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 human-readable-number" title="{tags.score}">{tags.score}</span></a>
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}" class="human-readable-number">{postercount}</span>
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}" class="human-readable-number">{postcount}</span>
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 class="human-readable-number" title="{viewcount}">{viewcount}</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 class="human-readable-number">{topics.postcount}</span> <a href="{config.relative_path}/topic/{topics.slug}/{topics.teaser.index}"><i class="fa fa-arrow-circle-right"></i></a>
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 class="human-readable-number" title="{topics.votes}">{topics.votes}</span><br />
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 class="human-readable-number" title="{topics.postcount}">{topics.postcount}</span><br />
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 class="human-readable-number" title="{topics.viewcount}">{topics.viewcount}</span><br />
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 class="formatted-number">{users.reputation}</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 class="formatted-number">{users.postcount}</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 class="formatted-number" href="{config.relative_path}/flags?targetUid={users.uid}">{users.flags}</a></span>
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>