Merge remote-tracking branch 'origin/main'

This commit is contained in:
SDE
2024-05-31 13:07:13 +03:00
8 changed files with 56 additions and 28 deletions

View File

@@ -85,8 +85,8 @@ def ArticlesPageView(request, year=None):
Dict = get_articles(art_kwargs=kwargs)
Dict.update({
'page': {
'title': _('Страница списка новостей'),
'description': _('Все новости сайта tripwb.com'),
'title': _('Новости сервиса доставки посылок | TWB'),
'description': _('Обновления, полезные статьи и свежие новости от TWB ✓ Актуальные новости в мире доставок по всему СНГ ➡️ Следите за нашими новостями'),
'keywords': _('Все новости сайта tripwb.com'),
}
})

View File

@@ -62,15 +62,15 @@ def profile_page_View(request, page_name, id=None):
request.user.user_profile.save(update_fields=['mailing_on'])
del request.session['mailingSubscribeRequired']
title = _('Личный кабинет пользователя') + ' ' + request.user.first_name + ' ' + request.user.last_name
Dict.update({
'page': {
'title': title,
'description': title,
'keywords': title,
}
})
# title = _('Личный кабинет пользователя') + ' ' + request.user.first_name + ' ' + request.user.last_name
#
# Dict.update({
# 'page': {
# 'title': title,
# 'description': title,
# 'keywords': title,
# }
# })
# if request.GET and 'mobile' in request.GET and request.GET['mobile'] == 'true':
# Dict.update({

View File

@@ -39,12 +39,13 @@ msgid "Статьи"
msgstr "Articles"
#: ArticlesApp/views.py:88
msgid "Страница списка новостей"
msgstr "News list page"
msgid "Новости сервиса доставки посылок | TWB"
msgstr "Parcel Delivery Service News | TWB"
#: ArticlesApp/views.py:89 ArticlesApp/views.py:90
msgid "Все новости сайта tripwb.com"
msgstr "All website news on tripwb.com"
msgid "Обновления, полезные статьи и свежие новости от TWB ✓ Актуальные новости в мире доставок по всему СНГ ➡️ Следите за нашими новостями"
msgstr "Updates, useful articles, and fresh news from TWB ✓ Current news in the world of deliveries throughout the CIS ➡️ Stay tuned for our updates"
#: AuthApp/admin.py:52
msgid "Дополнительно"

View File

@@ -18,12 +18,12 @@
<div class="wrapper_switch_cont">
<div class="width-100">
<div class="label_toggle_switch_cont">
<label for="id_paid_toggle">{% translate "Автопродление тарифного плана" %}</label>
{# <label for="id_paid_toggle">{% translate "Автопродление тарифного плана" %}</label>#}
</div>
<div class="toggle_switch_cont">
<input class="input_toggle_switch" id="id_paid_toggle" name="paid_toggle" type="checkbox">
<div class="input_toggle_switch_display"></div>
<div class="toggler_input_switch"></div>
{# <div class="toggle_switch_cont">#}
{# <input class="input_toggle_switch" id="id_paid_toggle" name="paid_toggle" type="checkbox">#}
{# <div class="input_toggle_switch_display"></div>#}
{# <div class="toggler_input_switch"></div>#}
</div>
<div class="clear_both"></div>
</div>

View File

@@ -3,8 +3,6 @@
{% load i18n %}
{% block meta %}
<script src='{% static "js/find_route.js" %}'></script>
<script src="{% static "js/filters_functions_find_route.js" %}"></script>
<script src="{% static "js/dynamic_loading_routes.js" %}"></script>

View File

@@ -1,17 +1,32 @@
{% extends 'tb_base.html' %}
{% load static %}
{% load i18n %}
{% block title %}
{% if page_name == 'create_route_for_customer' %}
{% trans 'Отправить посылку в другие города| TWB' %}
{% elif page_name == 'create_route_for_mover' %}
{% trans 'Перевезти посылку в другие города | TWB' %}
{% endif %}
{% endblock %}
{% block meta %}
{# <script src='{% static "js/jquery_v3_6_4.js" %}'> </script>#}
{% block default_meta_description %}
<meta name="description"
content="{% if page_name == 'create_route_for_customer' %}{% blocktrans %}Доставка посылок и писем по всему СНГ ✓ Быстрее чем любая почта ✓ Низкая цена отправки посылки ✓ Бесплатный просчет стоимости отправки ➡️ Обращайтесь к нам{% endblocktrans %}{% elif page_name == 'create_route_for_mover' %}{% blocktrans %}Перевози посылки и получай бонусы ✓ TWB один из лидеров по экспресс доставке посылок ✓ Широкий перечень городов ✓ Бесплатный калькулятор стоимости перевозки посылки ➡️ Обращайтесь к нам{% endblocktrans %}{% endif %}">
{% endblock %}
<script src='{% static "js/ion.rangeSlider.min.js" %}'> </script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" rel="stylesheet">
<script src='{% static "js/user_profile.js" %}'> </script>
<title>123</title>
{# <script src='{% static "js/chat_sockets.js" %}'></script>#}
<link rel="stylesheet" href="{% static 'css/ion.rangeSlider.min.css' %}">
<script src='{% static "js/user_profile_2.js" %}'> </script>
{% include "connect_ws_js.html" %}
@@ -19,10 +34,10 @@
<script defer src='{% static "js/check_new_messages.js" %}'></script>
{% endblock %}
{% block content %}
{% include 'blocks/b_user_profile.html' %}

View File

@@ -9,10 +9,23 @@
<meta charset="UTF-8">
{# <meta name="viewport" content="width=100%,maximum-scale=5,minimum-scale=1,initial-scale=1">#}
<meta name="viewport" content="width=device-width,maximum-scale=1,minimum-scale=1,initial-scale=1,height=device-height">
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% else %}
{% block default_meta_description %}{% endblock %}
{% endif %}
<meta name="vapid-key" content="{{ vapid_key }}">
{% webpush_header %}
<title>
{% if page.title %}
{{ page.title }}
{% else %}
{% block title %}{% endblock %}
{% endif %}
</title>
{% include "inter/meta_names.html" %}
{# <script src='{% static "js/jquery_v3_6_4.js" %}'> </script>#}

View File

@@ -4,6 +4,7 @@
{% load i18n %}
<div class="carrier-card" data-number-of-route="{{ route.id }}">
<div class="left-part-carrier-card">
{# <div class="first-line-card-carrier">#}