Teams: Add a back button to the search/view pages
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

This commit is contained in:
Mia 2025-04-12 01:31:28 -05:00
parent 84bb82a413
commit 60ee938a1d
3 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,7 @@ Config.routes = {
dex: '${routes.dex}',
replays: '${routes.replays}',
users: '${routes.users}',
teams: '${routes.teams}',
};
${AUTOCONFIG_END}`;

View File

@ -102,6 +102,7 @@ export class TeamSearcher extends preact.Component<PageProps> {
return <div class="section" style={{ wordWrap: 'break-word' }}>Loading...</div>;
}
return <div class="section" style={{ wordWrap: 'break-word', textAlign: 'center' }}>
<small><a href={'//' + Config.routes.teams}><i class="fa fa-arrow-left"></i></a></small>
<h1>Search Teams</h1>
<br />
<div name="searchsection">

View File

@ -232,7 +232,8 @@ export class TeamViewer extends preact.Component<PageProps> {
const link = this.id + (this.pw ? `-${this.pw}` : '');
return <div class="section" style={{ wordWrap: 'break-word' }}>
<h2>{title}</h2>
<small><a href={'//' + Config.routes.teams}><i class="fa fa-arrow-left"></i></a></small>
<h1>{title}</h1>
Owner: <strong style={{ color: BattleLog.usernameColor(ownerid as any) }}>{ownerid}</strong><br />
Format: {format}<br />
Views: {views}<br />