japanese-drum-game/templates/admin_songs.html

18 lines
464 B
HTML
Raw Normal View History

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">
<p>{{ song.title }}</p>
</div>
</a>
{% endfor %}
{% endblock %}