Добавил черновой вариант пагинации и переделал шаблоны
This commit is contained in:
@@ -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 %}
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user