From 8c682d3fef3fa0087e00053fcac0b835fa1b3b7c Mon Sep 17 00:00:00 2001 From: erjemin Date: Sat, 12 Sep 2026 23:47:35 +0300 Subject: [PATCH] minor: design adjust (4) --- hypn0/hypn0_site/tests.py | 7 +++--- hypn0/templates/blog/detail.html | 41 ++++++++++++++++++++++---------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/hypn0/hypn0_site/tests.py b/hypn0/hypn0_site/tests.py index b4e06f6..fa8f221 100644 --- a/hypn0/hypn0_site/tests.py +++ b/hypn0/hypn0_site/tests.py @@ -1393,10 +1393,9 @@ class BlogPostModelAndAdminTests(BaseMediaTestCase): self.assertContains(resp_ch1, "Материал входит в серию:") self.assertContains(resp_ch1, self.item.s_title) self.assertContains(resp_ch1, f"#{self.item.s_hash_id}") - self.assertContains(resp_ch1, "В галерею") - self.assertContains(resp_ch1, "Вес картины:") - self.assertContains(resp_ch1, "Просмотры:") - self.assertContains(resp_ch1, "Признание:") + self.assertContains(resp_ch1, f"/gallery/{self.item.s_hash_id}") + self.assertContains(resp_ch1, "Скачать SVG") + self.assertContains(resp_ch1, "Вес:") self.assertContains(resp_ch1, "Следующая глава цикла") self.assertContains(resp_ch1, "Глава 2: Фазовый сдвиг матрицы") diff --git a/hypn0/templates/blog/detail.html b/hypn0/templates/blog/detail.html index e9fcbb0..3a9fef2 100644 --- a/hypn0/templates/blog/detail.html +++ b/hypn0/templates/blog/detail.html @@ -130,7 +130,28 @@
{% if active_svg %}
- {{ active_svg|safe }} +
{% elif post.k_item.file_svg %} {{ post.k_item.s_title }} @@ -144,7 +165,9 @@ {{ post.k_item.s_title|safe }}
- #{{ post.k_item.s_hash_id }} + #{{ post.k_item.s_hash_id }}
@@ -173,7 +196,7 @@
{% endif %}
- + @@ -182,10 +205,10 @@
- + - + {{ post.k_item.i_likes_count }}
@@ -193,14 +216,6 @@
- - - - - - В галерею -