chore: makes better use of symfony denormalizer
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<div class="w-full flex flex-col">
|
||||
<div class="mb-4 flex flex-row gap-2 justify-between">
|
||||
<h3 class="text-xl font-medium leading-tight font-bold text-gray-50">
|
||||
{{ results.media.title }} ({{ results.media.year|date('Y') }})
|
||||
{{ results.media.title }} ({{ results.media.episodeAirDate|date('Y') }})
|
||||
</h3>
|
||||
|
||||
{% if results.media.mediaType == "tvshows" %}
|
||||
@@ -53,6 +53,15 @@
|
||||
|
||||
<p class="text-gray-50">
|
||||
{{ results.media.description }}
|
||||
<br /><br />
|
||||
|
||||
{% if results.media.stars != null %}
|
||||
<strong>Starring</strong>: {{ results.media.stars|join(', ') }} <br />
|
||||
{% endif %}
|
||||
|
||||
{% if results.media.directors != null %}
|
||||
<strong>Directors</strong>: {{ results.media.directors|join(', ') }} <br />
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% if "movies" == results.media.mediaType %}
|
||||
@@ -61,10 +70,6 @@
|
||||
<span class="results-count-number" id="movie_results_count">-</span> results
|
||||
</span>
|
||||
|
||||
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-gray-700 rounded-lg font-normal text-white" title="Release date {{ results.media.episodeAirDate }}">
|
||||
{{ results.media.episodeAirDate|date(null, 'UTC') }}
|
||||
</small>
|
||||
|
||||
<twig:Turbo:Frame id="meb_{{ results.media.imdbId }}" src="{{ path('api.library.search', {
|
||||
title: results.media.title,
|
||||
block: 'media_exists_badge',
|
||||
@@ -74,6 +79,14 @@
|
||||
missing
|
||||
</small>
|
||||
</twig:Turbo:Frame>
|
||||
|
||||
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-sky-700 rounded-lg text-white" title="Release date {{ results.media.episodeAirDate }}">
|
||||
{{ results.media.episodeAirDate|date(null, 'UTC') }}
|
||||
</small>
|
||||
|
||||
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-orange-500 rounded-lg text-white" title="This movie has a runtime of {{ results.media.runtime }} minutes.">
|
||||
{{ results.media.runtime }} minutes
|
||||
</small>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user