Skip to content

Commit

Permalink
Added details text for episodes + misc styling
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsBergqvist committed Nov 21, 2023
1 parent 0292ebf commit 1257ec3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/app/components/channels/channel-schedule.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<div *ngIf="episode.episodeid" class="right clickable" (click)="onOpenDetails(episode.episodeid)">
<i class="pi pi-info-circle details-btn"></i>
</div>
<div *ngIf="!episode.episodeid" class="right clickable">

</div>
</td>
<td>
{{episode.starttimeDate | date:'HH:mm'}}
Expand Down
5 changes: 4 additions & 1 deletion src/app/components/episodes/episode-details.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<p>
{{episode.description}}
</p>
<p>
{{episode.details}}
</p>
</div>
<div *ngIf="episode.publishDate" class="clear">
<b>{{'PublishDate' | translate }}</b>: {{episode.publishDate | date:'short'}}
Expand Down Expand Up @@ -70,7 +73,7 @@
<li>
<i>{{group.name}}</i>
<ul *ngFor="let related of group.episodes">
<li class="clickable" (click)="onShowEpisode(related.id)">
<li class="clickable link-item" (click)="onShowEpisode(related.id)">
<i>{{related.title}}</i>
</li>
</ul>
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/episodes/episode-viewmodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class EpisodeViewModel {
readonly availableTo: Date;
readonly relatedEpisodes: RelatedEpisode[];
readonly episodeGroups: EpisodeGroup[];
readonly details: string;

constructor(episode: Episode) {
this.title = episode.title;
Expand Down Expand Up @@ -66,8 +67,8 @@ export class EpisodeViewModel {
}

this.relatedEpisodes = episode.relatedepisodes;

this.episodeGroups = episode.episodegroups;
this.details = episode.text;
}

hasSound(): boolean {
Expand Down
1 change: 1 addition & 0 deletions src/app/models/episode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface Episode {
};
relatedepisodes: EpisodeOverview[];
episodegroups: EpisodeGroup[];
text: string;
}

export interface EpisodeResult {
Expand Down
8 changes: 5 additions & 3 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
display: none;
}

.prg-chan-td {
}

.kw-input {
max-width: 300px;
}
Expand Down Expand Up @@ -191,3 +188,8 @@
width: 50px;
vertical-align: middle;
}

.link-item {
padding-top: 5px;
padding-bottom: 5px;
}

0 comments on commit 1257ec3

Please sign in to comment.