Add 'artist' view to 'vote' app
parent
378e9b164e
commit
495f90f28f
@ -1,6 +1,22 @@
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block title %}{% endblock %}
|
||||
{% block title %}{{ artist.name }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>{{ artist.name }}</h1>
|
||||
<p>{{ artist.genre }} · {{ artist.origin }}<br>{{ artist.comment }}</p>
|
||||
|
||||
<div class="pagination">
|
||||
{% if offset > 0 %}
|
||||
<a href="{% url 'artist' playlist offset|add:-1 %}">< Zurück</a>
|
||||
{% else %}
|
||||
<a></a>
|
||||
{% endif %}
|
||||
{{ offset|add:1 }}/{{ count }}
|
||||
{% if offset < count|add:-1 %}
|
||||
<a href="{% url 'artist' playlist offset|add:1 %}">Weiter ></a>
|
||||
{% else %}
|
||||
<a></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue