Skip to content

Commit

Permalink
feat: show session format
Browse files Browse the repository at this point in the history
  • Loading branch information
ksw2000 committed Nov 28, 2024
1 parent 5e7e243 commit 5baa63c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/load-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface Session {
speakers: string[]; // speaker_key
tags: string[];
title: string;
format: string;
generatedID: string;
generatedStartAt: string;
generatedEndsAt: string;
Expand Down
1 change: 1 addition & 0 deletions src/app/schedule/schedule-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<h1>{{ session.title }}</h1>
<p>πŸ•’ {{ session.generatedStartAt | date:'MM/d hh:mm' }} ~ {{ session.generatedEndsAt | date:'hh:mm' }}</p>
<p *ngIf="session.generatedRoom">πŸšͺ {{ session.generatedRoom }}</p>
<p *ngIf="session.format">πŸ’¬ {{ session.format }}</p>
<p *ngIf="session.language">🌐 {{ session.language }}</p>
<p *ngIf="session.description">πŸ“ {{ session.description }}</p>
<ul class="speaker-list">
Expand Down
9 changes: 7 additions & 2 deletions src/app/schedule/schedule.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ <h2 class="schedule-date">πŸ“… {{ schedule.date | date:'MM/dd' }}</h2>
<a [routerLink]="'/schedule/' + session.generatedID">{{ session.title }}</a>
</mat-card-title>
<mat-card-subtitle>
<span *ngIf="session.generatedRoom">
<span *ngIf="session.generatedRoom && session.format">
{{ session.generatedRoom + ' ‧ ' + session.format }}
</span>
<span *ngIf="session.generatedRoom && !session.format">
{{ session.generatedRoom }}
</span>
<span *ngIf="!session.generatedRoom && session.format">
{{ session.format }}
</span>
<span class="language-box" *ngIf="session.language">
{{ session.language }}
</span>
</mat-card-subtitle>
</mat-card-header>
<mat-card-content class="social-link-list">
<!-- <p>{{room.name}}</p> -->
<div>
<ul class="speaker-list">
<li *ngFor="let speakerID of session.speakers">
Expand Down

0 comments on commit 5baa63c

Please sign in to comment.