diff --git a/bemani/frontend/app.py b/bemani/frontend/app.py index 62cd703..87a3a25 100644 --- a/bemani/frontend/app.py +++ b/bemani/frontend/app.py @@ -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 diff --git a/bemani/frontend/danevo/endpoints.py b/bemani/frontend/danevo/endpoints.py index efe4df1..c658b0a 100644 --- a/bemani/frontend/danevo/endpoints.py +++ b/bemani/frontend/danevo/endpoints.py @@ -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), }, ) diff --git a/bemani/frontend/static/controllers/danevo/player.react.js b/bemani/frontend/static/controllers/danevo/player.react.js index b3603ff..cac1985 100644 --- a/bemani/frontend/static/controllers/danevo/player.react.js +++ b/bemani/frontend/static/controllers/danevo/player.react.js @@ -64,6 +64,11 @@ var profile_view = createReactClass({ view your records : view {player.name}'s records } + · + { window.own_profile ? + view all your scores : + view all {player.name}'s scores + } );