Skip to content

Commit

Permalink
Remove search page heading link
Browse files Browse the repository at this point in the history
  • Loading branch information
1dagranholm committed Mar 19, 2020
1 parent 60058a4 commit e6ad01d
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/app/search-result/search-result.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>Search result</h1>
</div>
</section>

<div *ngIf="!errorApiActors || !errorApiMovies">
<div *ngIf="!errorApiActors || !errorApiMovies || !errorApiTv">
<div class="album py-5 bg-light">
<div *ngIf="movies" class="container">
<h2 class="text-center mb-4" id="movies">Movies</h2>
Expand All @@ -31,9 +31,7 @@ <h2 class="text-center mb-4" id="movies">Movies</h2>
role="img"
/></a>
<div class="card-body">
<a [routerLink]="['/view-movie', m.id]"
><h3>{{ m.title }}</h3></a
>
<h3>{{ m.title }}</h3>
<p *ngIf="m.overview" class="card-text" style="height:120px;">
{{ m.overview.substring(0, 180) }}...
</p>
Expand All @@ -54,7 +52,9 @@ <h2 class="text-center mb-4" id="movies">Movies</h2>
</button>
</div>
<div class="d-flex align-items-center">
<small *ngIf="m.vote_average" class="text-muted mr-2">Average vote:</small>
<small *ngIf="m.vote_average" class="text-muted mr-2"
>Average vote:</small
>
<div class="group">
<div
class="circular-progress{{ m.vote_average * 10 }}"
Expand Down Expand Up @@ -92,9 +92,7 @@ <h2 class="text-center mb-4" id="tv">TV-shows</h2>
role="img"
/></a>
<div class="card-body">
<a [routerLink]="['/view-tv', t.id]"
><h3>{{ t.name }}</h3></a
>
<h3>{{ t.name }}</h3>
<p class="mt-2">
<small
*ngFor="let genreId of t.genre_ids"
Expand All @@ -109,7 +107,7 @@ <h2 class="text-center mb-4" id="tv">TV-shows</h2>
{{ t.overview.substring(0, 180) }}...
</p>
<p>
<small *ngIf="t.first_air_date" class="text-muted"
<small *ngIf="t.first_air_date" class="text-muted"
>First aired: {{ t.first_air_date }}</small
>
</p>
Expand All @@ -124,7 +122,9 @@ <h2 class="text-center mb-4" id="tv">TV-shows</h2>
</button>
</div>
<div class="d-flex align-items-center">
<small *ngIf="t.vote_average" class="text-muted mr-2">Average vote:</small>
<small *ngIf="t.vote_average" class="text-muted mr-2"
>Average vote:</small
>
<div class="group">
<div
class="circular-progress{{ t.vote_average * 10 }}"
Expand Down Expand Up @@ -163,9 +163,7 @@ <h2 class="text-center mb-4" id="actors">Actors</h2>
/>
</a>
<div class="card-body">
<a [routerLink]="['/view-actor', a.id]"
><h3>{{ a.name }}</h3></a
>
<h3>{{ a.name }}</h3>
<h4 class="mt-3">Featured in:</h4>
<ul class="pl-0 mb-4">
<li class="card-text" *ngFor="let act of a.known_for">
Expand Down

0 comments on commit e6ad01d

Please sign in to comment.