taiko-web/templates/admin_songs.html

26 lines
926 B
HTML
Raw Normal View History

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">
{% 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 %}
<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 %}