diff options
| author | Developer | 2026-06-27 04:29:52 +0200 |
|---|---|---|
| committer | Developer | 2026-06-27 04:29:52 +0200 |
| commit | 7e36b9ea2898b9693ac2ee7962455b8db10c8f58 (patch) | |
| tree | b2b82b5d56e06d817a21bd236eeb0fb2758990f0 /resources/views/cinema_show.blade.php | |
| parent | 3b8f8c9adc18059d4d33609895f4d187de065bcf (diff) | |
| download | curious-7e36b9ea2898b9693ac2ee7962455b8db10c8f58.tar.gz | |
feat: add Wikipedia button and reorganize cinema show page
- Move View on IMDb / View on Wikipedia buttons above Hacker News section
- Add View on Wikipedia button linking to wiki_article
- Fix typos: hhn-comment -> hn-comment, <ssmall> -> <small>
Diffstat (limited to 'resources/views/cinema_show.blade.php')
| -rw-r--r-- | resources/views/cinema_show.blade.php | 19 |
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> |
