eerrrrrr
All checks were successful
CI - Build Tonehaus Docker image / tonehaus-ci-build (push) Successful in 1m57s

This commit is contained in:
2025-11-27 23:42:17 +00:00
parent 054e970df9
commit 1c98a634c3
50 changed files with 1666 additions and 593 deletions

View File

@@ -2,10 +2,25 @@
{% block title %}{{ review.title }}{% endblock %}
{% block body %}
<p><a href="{{ path('account_dashboard') }}">← Back to dashboard</a></p>
<h1 class="h4">{{ review.title }} <span class="text-secondary">(Rating {{ review.rating }}/10)</span></h1>
<div class="d-flex align-items-center gap-3 mb-3">
{% set avatar = review.author.profileImagePath %}
{% if avatar %}
<img src="{{ avatar }}" alt="Avatar for {{ review.author.displayName ?? review.author.userIdentifier }}" class="rounded-circle border" width="64" height="64" style="object-fit: cover;">
{% else %}
<div class="rounded-circle bg-secondary text-white d-flex align-items-center justify-content-center" style="width:64px;height:64px;">
{{ (review.author.displayName ?? review.author.userIdentifier)|slice(0,1)|upper }}
</div>
{% endif %}
<div>
<h1 class="h4 mb-1">{{ review.title }} <span class="text-secondary">(Rating {{ review.rating }}/10)</span></h1>
<div class="text-secondary">
by {{ review.author.displayName ?? review.author.userIdentifier }}{{ review.createdAt|date('Y-m-d H:i') }}
</div>
</div>
</div>
<p class="text-secondary">
{{ review.album.name }}{{ review.album.artists|join(', ') }}
<a class="ms-1" href="{{ path('album_show', {id: review.album.spotifyId}) }}">View album</a>
<a class="ms-1" href="{{ path('album_show', {id: review.album.spotifyId ?? review.album.localId}) }}">View album</a>
</p>
<article class="mb-3">
<p>{{ review.content|nl2br }}</p>