summaryrefslogtreecommitdiff
path: root/resources/views/cinema_show.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/cinema_show.blade.php')
-rw-r--r--resources/views/cinema_show.blade.php19
1 files changed, 12 insertions, 7 deletions
diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php
index 4562a9c..d8ff794 100644
--- a/resources/views/cinema_show.blade.php
+++ b/resources/views/cinema_show.blade.php
@@ -138,6 +138,17 @@
</div>
@endif
+ @if ( ! is_null($movie->imdb_id) || ! is_null($movie->wiki_article) )
+ <div class="mt-3">
+ @if ( ! is_null($movie->wiki_article) )
+ <a class="btn btn-outline-primary btn-sm mr-2" href="https://en.wikipedia.org/wiki/{{ $movie->wiki_article }}" target="_blank">View on Wikipedia</a>
+ @endif
+ @if ( ! is_null($movie->imdb_id) )
+ <a class="btn btn-outline-primary btn-sm" href="https://www.imdb.com/title/{{ $movie->imdb_id }}" target="_blank">View on IMDb</a>
+ @endif
+ </div>
+ @endif
+
@if ( ! empty($hnStories) )
<div class="mt-3">
<h4>Mentions on Hacker News</h4>
@@ -152,7 +163,7 @@
@endif
</a>
<small class="text-muted">
- {{ \Carbon\Carbon::createFromTimestamp($story->time)->format('Y-m-d') }}
+ | {{ \Carbon\Carbon::createFromTimestamp($story->time)->format('Y-m-d') }}
@if ($story->score > 0)
· <span class="badge badge-pill badge-secondary">{{ $story->score }} Upvotes</span>
@endif
@@ -165,12 +176,6 @@
</ul>
</div>
@endif
-
- @if ( ! is_null($movie->imdb_id) )
- <div class="mt-3">
- <a class="btn btn-outline-primary btn-sm" href="https://www.imdb.com/title/{{ $movie->imdb_id }}" target="_blank">View on IMDb</a>
- </div>
- @endif
</div>
</div>
</div>