1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-22 21:57:32 +00:00
Altessimo/categories/templates/branches/show.html

22 lines
1.1 KiB
HTML
Raw Normal View History

2020-12-16 17:36:29 +00:00
{% extends 'layouts/base.html' %}
{% block content %}
<h1>[{{ branch.acronym }}] {{ branch.name }}</h1>
<h2>Description</h2>
2020-12-17 12:21:37 +00:00
<div>{{ branch.description|safe }}</div>
2020-12-16 17:36:29 +00:00
<h2>Songs</h2>
2020-12-16 18:02:21 +00:00
{% include 'components/song-table.html' with songs=page_obj %}
<nav aria-label="Pages">
<ul class="pagination">
{% if page_obj.has_previous %}
<li class="page-item"><a class="page-link" href="?page=1">First</a></li>
<li class="page-item"><a class="page-link" href="?page={{ page_obj.previous_page_number }}">Previous</a></li>
{% endif %}
<li class="page-item"><a class="page-link" href="?page={{ page_obj.number }}">{{ page_obj.number }} of {{ page_obj.paginator.num_pages }}</a></li>
{% if page_obj.has_next %}
<li class="page-item"><a class="page-link" href="?page={{ page_obj.next_page_number }}">Next</a></li>
<li class="page-item"><a class="page-link" href="?page={{ page_obj.paginator.num_pages }}">Last</a></li>
{% endif %}
</ul>
</nav>
2020-12-16 17:36:29 +00:00
{% endblock %}