Skip to content

Commit

Permalink
Clean up old cubespace templating and hide game window status if the …
Browse files Browse the repository at this point in the history
…game is active.
  • Loading branch information
sei-bstein committed Oct 13, 2023
1 parent 053e7d4 commit 7182f72
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<div *ngIf="!(ctx.game.session.isDuring && ctx.player.session?.isDuring)" class="text-info card-text d-flex mb-2">
<div>
<span *ngIf="ctx.game.session.isBefore">Game window opens in </span>
<span *ngIf="ctx.game.session.isDuring">Game window closes in </span>
<span *ngIf="ctx.game.session.isAfter">Game window is closed </span>
</div>
<div class="ml-2">
Expand Down Expand Up @@ -71,12 +70,8 @@ <h3>Session Forecast</h3>
</ng-container>

<div *ngIf="!ctx.player.session?.isBefore" class="text-center my-4">
<a *ngIf="ctx.game.mode != 'unity'" class="btn btn-primary btn-lg"
[routerLink]="['../board', ctx.player.id]">Continue to Gameboard</a>
<a *ngIf="ctx.game.mode == 'unity'" class="btn btn-primary bgn-lg"
[routerLink]="['../unity-board', ctx.player.gameId, ctx.player.id, ctx.player.teamId, ctx.player.sessionEnd.valueOf()]">
Continue to Cubespace
</a>
<a *ngIf="ctx.game.mode != 'unity'; else toCubespace; context: { $implicit: ctx }"
class="btn btn-primary btn-lg" [routerLink]="['../board', ctx.player.id]">Continue to Gameboard</a>
</div>

<div class="col d-flex justify-content-center" *ngIf="ctx.game.mapUrl">
Expand All @@ -89,3 +84,10 @@ <h3>Session Forecast</h3>
<ng-template #loading>
<app-spinner></app-spinner>
</ng-template>

<ng-template #toCubespace let-ctx>
<a *ngIf="ctx.game.mode == 'unity'" class="btn btn-primary bgn-lg"
[routerLink]="['../unity-board', ctx.player.gameId, ctx.player.id, ctx.player.teamId, ctx.player.sessionEnd.valueOf()]">
Continue to Cubespace
</a>
</ng-template>

0 comments on commit 7182f72

Please sign in to comment.