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 %}
|
2022-08-22 04:48:24 +08:00
|
|
|
<a href="{{config.basedir}}admin/songs/new" class="side-button">New song</a>
|
2020-03-17 07:30:44 +08:00
|
|
|
{% 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 %}
|
2022-08-22 04:48:24 +08:00
|
|
|
<a href="{{config.basedir}}admin/songs/{{ song.id }}" class="song-link">
|
2020-03-13 10:45:42 +08:00
|
|
|
<div class="song">
|
2020-04-17 09:53:53 +08: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 12:03:10 +08:00
|
|
|
{% else %}
|
2020-04-17 09:53:53 +08:00
|
|
|
<p><span class="song-id">{{ song.id }}.</span>
|
|
|
|
{% if not song.enabled %}(Not enabled){% endif %}
|
|
|
|
{{ song.title }}</p>
|
2020-03-17 12:03:10 +08:00
|
|
|
{% endif %}
|
2020-03-13 10:45:42 +08:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endblock %}
|