[AB-xxx] adapting templates for leaderboard focus feature

This commit is contained in:
Sheldan
2024-11-26 23:18:27 +01:00
parent 26063ea5f8
commit c26b8e6e71
5 changed files with 18 additions and 4 deletions

View File

@@ -12,9 +12,11 @@
<@userDisplay user=user />
</#list>
<#assign showPlacement=showPlacement>
<#if showPlacement>
<@safe_include "leaderboard_own_placement"/>:
<@userDisplay user=userExecuting />
</#if>
",
"footer": {
"text": "<@safe_include "leaderboard_footer"/>"

View File

@@ -38,4 +38,14 @@
]
}
]
<#if leaderboardUrl?has_content>
,"buttons": [
{
"label": "<@safe_include "rank_leaderboard_button_label"/>",
<#assign leaderboardUrl=leaderboardUrl>
"url": "${leaderboardUrl}",
"buttonStyle": "link"
}
]
</#if>
}

View File

@@ -0,0 +1 @@
Whether the leaderboard should show the rankings surrounding you. Overwrites page parameter

View File

@@ -1 +1 @@
The page of the leaderboard you want to see.
The page of the leaderboard you want to see. Overwritten by focus parameter.