Add back scores link on danevo profile now that it's available.

This commit is contained in:
Jennifer Taylor 2025-10-24 02:26:05 +00:00
parent e9070d9a13
commit 5de55fef39
3 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,7 @@ config = Config()
# Allow cache-busting of entire frontend for major changes such as react upgrades.
FRONTEND_CACHE_BUST: str = "site.1.3.react.16.14"
FRONTEND_CACHE_BUST: str = "site.1.3.react.16.15"
@app.before_request

View File

@ -282,6 +282,7 @@ def viewplayer(userid: UserID) -> Response:
{
"refresh": url_for("danevo_pages.listplayer", userid=userid),
"records": url_for("danevo_pages.viewrecords", userid=userid),
"scores": url_for("danevo_pages.viewscores", userid=userid),
},
)

View File

@ -64,6 +64,11 @@ var profile_view = createReactClass({
<span>view your records</span> :
<span>view {player.name}'s records</span>
}</a>
<span className="separator">&middot;</span>
<a href={Link.get('scores')}>{ window.own_profile ?
<span>view all your scores</span> :
<span>view all {player.name}'s scores</span>
}</a>
</div>
</div>
);