Added link to replay viewer

This commit is contained in:
nise.moe 2024-03-03 18:44:32 +01:00
parent fe5a7ecbac
commit 9c07baadce
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export interface ReplayDataSimilarScore {
}
export interface ReplayData {
replay_id: number;
replay_id: number | null;
user_id: number;
username: string;
date: string;

View File

@ -46,6 +46,9 @@
<li>Played by: <a [routerLink]="['/u/' + this.replayData.username]">{{ this.replayData.username }}</a> <a class="btn" style="margin-left: 5px" href="https://osu.ppy.sh/users/{{ this.replayData.user_id }}" target="_blank">osu!web</a></li>
<li>Link to score: <a class="btn" href="https://osu.ppy.sh/scores/osu/{{ this.replayData.replay_id }}" target="_blank">osu!web</a></li>
<li><a class="btn" [href]="this.buildCircleguardUrl()">Open in CircleGuard</a></li>
<li *ngIf="this.replayData.replay_id">
<a class="btn" [href]="'https://replay.nise.moe/' + this.replayData.replay_id" target="_blank">Open in Replay Viewer</a>
</li>
<li>PP: {{ this.replayData.pp }}</li>
<li>Grade: <app-osu-grade [grade]="this.replayData.rank"></app-osu-grade></li>
</ul>