what the fuck
This commit is contained in:
1 parent
c1b1c2f372
commit
72a99a5bcd
69 files changed
+7519
-558
No files matched your search
@@ -71,18 +71,27 @@
|
||||
<h2 class="h6 mb-3">Your albums</h2>
|
||||
<div class="vstack gap-2">
|
||||
{% for a in userAlbums %}
|
||||
{% set publicId = a.externalId %}
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<div class="me-2">
|
||||
<div><a href="{{ path('album_show', {id: a.localId}) }}" class="text-decoration-none">{{ a.name }}</a></div>
|
||||
<div>
|
||||
{% if publicId %}
|
||||
<a href="{{ path('album_show', {id: publicId}) }}" class="text-decoration-none">{{ a.name }}</a>
|
||||
{% else %}
|
||||
{{ a.name }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="text-secondary small">{{ a.artists|join(', ') }}{% if a.releaseDate %} • {{ a.releaseDate }}{% endif %}</div>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{{ path('album_edit', {id: a.localId}) }}">Edit</a>
|
||||
<form method="post" action="{{ path('album_delete', {id: a.localId}) }}" onsubmit="return confirm('Delete this album?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete-album-' ~ a.localId) }}" />
|
||||
<button class="btn btn-sm btn-outline-danger" type="submit">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
{% if publicId %}
|
||||
<div class="d-flex gap-2">
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{{ path('album_edit', {id: publicId}) }}">Edit</a>
|
||||
<form method="post" action="{{ path('album_delete', {id: publicId}) }}" onsubmit="return confirm('Delete this album?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete-album-' ~ publicId) }}" />
|
||||
<button class="btn btn-sm btn-outline-danger" type="submit">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="text-secondary">You haven't created any albums yet.</div>
|
||||
@@ -93,5 +102,3 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user