diff options
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/views/cinema_show.blade.php | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php index 6494cdd..63ec736 100644 --- a/resources/views/cinema_show.blade.php +++ b/resources/views/cinema_show.blade.php @@ -23,6 +23,9 @@ column-gap: 20px; } +.hn-story { + color: var(--cinema-pink); +} .hn-comment { font-size: 0.875rem; color: var(--cinema-pink); @@ -155,14 +158,6 @@ </div> @endif - @if ( ! empty($movie->license_url) ) - <div class="mt-3"> - <small class="text-muted"> - Licensed under <a href="{{ $movie->license_url }}" target="_blank" class="card-links">{{ $movie->license_short ?? $movie->license }}</a> - </small> - </div> - @endif - @if ( ! empty($hnStories) ) <div class="mt-3"> <h4 class="hn-heading">Mentions on Hacker News</h4> @@ -171,25 +166,42 @@ <li> <a class="card-links" href="https://news.ycombinator.com/item?id={{ $story->story_id }}" target="_blank"> @if ($story->type === 'comment' && ! empty($story->text)) - <span class="hn-comment">{{ Str::limit(strip_tags($story->text), 80) }}</span> + <span class="hn-comment"> + {!! file_get_contents(public_path() . "/img/y-combinator.svg") !!} + {{ Str::limit(strip_tags($story->text), 80) }} + </span> @else - {{ $story->title ?: 'HN Story' }} + <span class="hn-story"> + {!! file_get_contents(public_path() . "/img/y-combinator.svg") !!} + {{ $story->title ?: 'HN Story' }} + </span> @endif </a> - <small class="text-muted"> + <!--small class="text-muted"> {{ \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 @if ($story->descendants > 0) - · <span class="badge badge-pill badge-secondary">{{ $story->descendants }} Comments</span> + · <span class="badge badge-pill badge-secondary">{{ $story->descendants }} Upvotes </span> @endif - </small> + </small--> </li> @endforeach </ul> </div> @endif + + <div class="mt-3"> + @if ( ! empty($movie->license_url) ) + <small class="text-muted"> + Ratings provided by IMDB. Information courtesy of <a href="https://www.imdb.com" target=_blank rel="nofollow">IMDb</a>. Used with permission. + </small> + <small class="text-muted"> + Wikidata Licensed under <a href="{{ $movie->license_url }}" target="_blank" class="card-links">{{ $movie->license_short ?? $movie->license }}</a> + </small> + @endif + </div> </div> </div> </div> |
