nodebb-theme-persona 14.0.4 → 14.0.5
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 +4 -2
- package/templates/partials/categories/link.tpl +10 -10
- package/theme.json +6 -6
package/package.json
CHANGED
package/public/persona.js
CHANGED
|
@@ -193,7 +193,8 @@ $(document).ready(function () {
|
|
|
193
193
|
if (parseInt(app.user.uid, 10) === parseInt(data.uid, 10) || !app.user.uid) {
|
|
194
194
|
card.find('.btn-morph').hide();
|
|
195
195
|
} else {
|
|
196
|
-
|
|
196
|
+
const uid = isFinite(data.uid) ? data.uid : encodeURIComponent(data.userslug);
|
|
197
|
+
setupFavouriteMorph(card, uid, data.username);
|
|
197
198
|
|
|
198
199
|
if (isFollowing) {
|
|
199
200
|
$('.btn-morph').addClass('heart');
|
|
@@ -212,7 +213,8 @@ $(document).ready(function () {
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
function setupFavouriteButtonOnProfile() {
|
|
215
|
-
|
|
216
|
+
const uid = isFinite(ajaxify.data.uid) ? ajaxify.data.uid : encodeURIComponent(ajaxify.data.userslug);
|
|
217
|
+
setupFavouriteMorph($('[component="account/cover"]'), uid, ajaxify.data.username);
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
function setupCardRemoval(card) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<!-- IF ../isSection -->
|
|
2
|
-
{../name}
|
|
3
|
-
<!-- ELSE -->
|
|
4
|
-
<!-- IF ../link -->
|
|
5
|
-
<a href="{../link}" itemprop="url">
|
|
6
|
-
<!-- ELSE -->
|
|
7
|
-
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
-
<!-- ENDIF ../link -->
|
|
9
|
-
{../name}
|
|
10
|
-
</a>
|
|
1
|
+
<!-- IF ../isSection -->
|
|
2
|
+
{../name}
|
|
3
|
+
<!-- ELSE -->
|
|
4
|
+
<!-- IF ../link -->
|
|
5
|
+
<a href="{../link}" itemprop="url">
|
|
6
|
+
<!-- ELSE -->
|
|
7
|
+
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
+
<!-- ENDIF ../link -->
|
|
9
|
+
{../name}
|
|
10
|
+
</a>
|
|
11
11
|
<!-- ENDIF ../isSection -->
|
package/theme.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "nodebb-theme-persona",
|
|
3
|
-
"name": "Persona",
|
|
4
|
-
"description": "The default theme for NodeBB. Uses a standard approach to forum design.",
|
|
5
|
-
"url": "https://github.com/psychobunny/nodebb-theme-persona",
|
|
6
|
-
"screenshot": "screenshot.png"
|
|
1
|
+
{
|
|
2
|
+
"id": "nodebb-theme-persona",
|
|
3
|
+
"name": "Persona",
|
|
4
|
+
"description": "The default theme for NodeBB. Uses a standard approach to forum design.",
|
|
5
|
+
"url": "https://github.com/psychobunny/nodebb-theme-persona",
|
|
6
|
+
"screenshot": "screenshot.png"
|
|
7
7
|
}
|