All checks were successful
Build and Push Docker Image / build (push) Successful in 24s
- Created `side-bar.html` and `item-list.html` fragments for catalog page layout - Updated `catalog/index.html` to include sidebar and item list templates - Added styles for catalog layout in `catalog.css` - Enabled `DEBUG=True` in settings for local development - Adjusted CSS in shipping and services for consistent spacing
27 lines
954 B
HTML
27 lines
954 B
HTML
{% extends "_layouts/base.html" %}
|
|
{% load static %}
|
|
|
|
{% block title %}Каталог{% endblock %}
|
|
|
|
{% block add_css %}
|
|
<link rel="stylesheet" href="{% static "css/catalog.css" %}">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<!-- HEADER -->
|
|
{% include "_fragments/header.html" with active="catalog" %}
|
|
|
|
{% if selected_category.id == None %}
|
|
{% include '_fragments/breadcrumbs.html' with url_1='/' text_1='Главная' url_2='/catalog/' text_2='Каталог' %}
|
|
{% else %}
|
|
{% include '_fragments/breadcrumbs.html' with url_1='/' text_1='Главная' url_2='/catalog/' text_2='Каталог' text_3=selected_category.name %}
|
|
{% endif %}
|
|
|
|
<div class="container catalog-container">
|
|
{% include 'catalog/_fragments/side-bar.html' with categories=categories %}
|
|
|
|
{% include 'catalog/_fragments/item-list.html' with items=items %}
|
|
</div>
|
|
|
|
{% include "_fragments/footer.html" %}
|
|
{% endblock %} |