From cc3a5c4a4f05e4a0db947e994c0f32d45d7a1c68 Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 19 Nov 2023 15:09:39 +0300 Subject: [PATCH] 0.8.371 --- static/js/user_profile_2.js | 5 +- templates/pages/p_article.html | 63 ++++++++++------------ templates/pages/p_articles.html | 28 ++++------ templates/widgets/w_news_element_item.html | 31 ++++------- 4 files changed, 50 insertions(+), 77 deletions(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index c57b9ee..e2c14fa 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -53,8 +53,9 @@ function select_tab_profile (el,url,owner_type=null) { } document.querySelector("#ru_lang").href = confirm_url_f_lang_ru document.querySelector("#en_lang").href = confirm_url_f_lang_en - - + let header = document.querySelector("header") + header.scrollIntoView({ + behavior: "smooth", block: "end", inline: "nearest" }) middleWareJS() let user_type = getInfoAboutUser() if (user_type === 'mobile') { diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index aee4620..d88b3af 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -22,54 +22,45 @@
- {% for art in arts_top %} + {% for item in arts_top %} - -
- + -
-
- {{ art.name|truncatechars:100 }} -
-
- {{ art.description|truncatechars:100 }} -
-
- {#
{{ art.text|safe }}
#} {% endfor %} - -
- -
-
-
- {{ art.name|truncatechars:100 }} -
-
{% for item in arts_down %} - -
- -
-
- {#
{{ art.text|safe }}
#} {% endfor %} diff --git a/templates/pages/p_articles.html b/templates/pages/p_articles.html index 44b328f..8cabb6a 100644 --- a/templates/pages/p_articles.html +++ b/templates/pages/p_articles.html @@ -15,19 +15,16 @@
{% for art in articles %} {% if forloop.counter0 < 3 %} - -
- -
-
-
- {% with from_el=3 %} - {% include 'blocks/articles/b_news_elements_content.html' %} - {% endwith %} - -
+ {% with from_el=3 %} + {% include 'blocks/articles/b_news_elements_content.html' %} + {% endwith %} {# boris edited #} {% if last_block == False %}
diff --git a/templates/widgets/w_news_element_item.html b/templates/widgets/w_news_element_item.html index 159dffb..67baebc 100644 --- a/templates/widgets/w_news_element_item.html +++ b/templates/widgets/w_news_element_item.html @@ -1,29 +1,16 @@ {% load static %} {% if not from_el or forloop.counter > from_el %} -{#
#} -{#
#} -{#
#} -{#
{{ art.name }}
#} -{#
#} -{# {{ art.description|truncatechars:400 }}#} +
+
+
+
{{ art.name }}
+
+ {{ art.description|truncatechars:400 }} {#
#} -{#
#} -{#
#} -{#
#} -{##} -{#
#} - -
-
-
-
- {{ art.name|truncatechars:100 }} -
-
- {{ art.description|truncatechars:100 }} -
-
+
+ +
{% endif %} \ No newline at end of file