From 0d94f329f8896550ee3daf5037865fc34cf813f8 Mon Sep 17 00:00:00 2001 From: Kirill Mokevnin Date: Fri, 14 Aug 2026 07:48:48 -0400 Subject: [PATCH 1/2] =?UTF-8?q?fix(templates):=20FEEDBACK-167=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D1=82=D0=B8=20layout=20?= =?UTF-8?q?=D0=B2=20templates/layouts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Layout лежал в templates/users/, хотя это общий шаблон сайта, а не шаблон раздела. Урок 200-templates-inheritance и все упражнения курса используют templates/layouts/layout.html, эталон расходился с ними на всех ветках после templates-inheritance. --- templates/{users => layouts}/layout.html | 0 templates/users/index.html | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename templates/{users => layouts}/layout.html (100%) diff --git a/templates/users/layout.html b/templates/layouts/layout.html similarity index 100% rename from templates/users/layout.html rename to templates/layouts/layout.html diff --git a/templates/users/index.html b/templates/users/index.html index 969d8de..eaf46e9 100644 --- a/templates/users/index.html +++ b/templates/users/index.html @@ -1,4 +1,4 @@ -{% extends "users/layout.html" %} +{% extends "layouts/layout.html" %} {% block title %}Пользователи{% endblock %} From a9bd03a909fd357307584c9c3b6a864f1ac3b8d6 Mon Sep 17 00:00:00 2001 From: Kirill Mokevnin Date: Fri, 14 Aug 2026 07:52:13 -0400 Subject: [PATCH 2/2] =?UTF-8?q?fix(templates):=20FEEDBACK-167=20=D0=BD?= =?UTF-8?q?=D0=B0=D1=81=D0=BB=D0=B5=D0=B4=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20?= =?UTF-8?q?layout=20=D0=B2=20users/show.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit На уроке 200-templates-inheritance страница пользователя наследует общий layout, а начиная со следующего урока показывалась голым фрагментом без шапки и меню. --- templates/users/show.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/users/show.html b/templates/users/show.html index 13d3197..45cf105 100644 --- a/templates/users/show.html +++ b/templates/users/show.html @@ -1,3 +1,6 @@ +{% extends "layouts/layout.html" %} + +{% block content %}
Имя = {{ user.name }}
Email = {{ user.email }}
@@ -9,3 +12,4 @@

Назад к списку пользователей

+{% endblock %}