2020-03-13 10:45:42 +08:00
|
|
|
{% extends 'admin.html' %}
|
|
|
|
{% block content %}
|
2020-03-17 07:30:44 +08:00
|
|
|
{% if admin.user_level >= 100 %}
|
|
|
|
<a href="/admin/songs/new" class="side-button">New song</a>
|
|
|
|
{% endif %}
|
2020-03-13 10:45:42 +08:00
|
|
|
<h1>Songs</h1>
|
2020-03-17 07:30:44 +08:00
|
|
|
{% for message in get_flashed_messages() %}
|
|
|
|
<div class="message">{{ message }}</div>
|
|
|
|
{% endfor %}
|
2020-03-13 10:45:42 +08:00
|
|
|
{% for song in songs %}
|
|
|
|
<a href="/admin/songs/{{ song.id }}" class="song-link">
|
|
|
|
<div class="song">
|
2020-03-17 12:03:10 +08:00
|
|
|
{% if song.title_lang.en %}
|
2020-04-04 21:48:58 +08:00
|
|
|
<p><span class="song-id">{{ song.id }}.</span> {{ song.title_lang.en }} <small>({{ song.title }})</small></p>
|
2020-03-17 12:03:10 +08:00
|
|
|
{% else %}
|
2020-04-04 21:48:58 +08:00
|
|
|
<p><span class="song-id">{{ song.id }}.</span> {{ song.title }}</p>
|
2020-03-17 12:03:10 +08:00
|
|
|
{% endif %}
|
2020-03-13 10:45:42 +08:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|