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