Добавил черновой вариант пагинации и переделал шаблоны

This commit is contained in:
Viner Abubakirov
2026-01-03 13:11:34 +05:00
parent 96a9f47d9d
commit 765e8b46ec
8 changed files with 105 additions and 73 deletions

View File

@@ -3,5 +3,8 @@
{% block content %}
<h1>Album List</h1>
{% include 'components/album_list.html' with albums=albums %}
<div class="container">
{% include 'components/album_list.html' %}
{% include 'components/pagination.html' %}
</div>
{% endblock %}

View File

@@ -3,5 +3,8 @@
{% block title %}Artist List{% endblock %}
{% block content %}
<h1>Artist List</h1>
{% include 'components/artist_list.html' with artists=artists %}
<div class="container">
{% include 'components/artist_list.html' with artists=artists %}
{% include 'components/pagination.html' with page_obj=page_obj %}
</div>
{% endblock %}

View File

@@ -1,5 +1,9 @@
{% extends 'base.html' %}
{% block content %}
{% include 'components/track_list.html' %}
<div class="container">
{% include 'components/track_list.html' %}
{% include 'components/pagination.html' %}
{% include 'components/player.html' %}
</div>
{% endblock %}