24 Commits

Author SHA1 Message Date
6043e1f5a7 0.0.4 fix text for contact page 2024-04-03 10:38:14 +03:00
SDE
4981bdcaa6 Merge remote-tracking branch 'origin/main' 2024-04-02 16:06:56 +03:00
SDE
c29cc25581 0.12.28 localization routines 2024-04-02 16:06:45 +03:00
0ce03ca73f Merge remote-tracking branch 'origin/main' 2024-04-02 14:14:45 +03:00
80a226a302 0.1.366 add text in subscribe block 2024-04-02 14:14:29 +03:00
0d41bd40e5 0.0.4 fix text for about page 2024-04-02 13:48:11 +03:00
d2fe96a599 0.0.4 center footer logo 2024-04-02 13:06:42 +03:00
d0d41a4d2b 0.0.3 replace footer logo max-width desktop 2024-04-02 10:44:46 +03:00
5e7a153d6d 0.0.3 replace footer logo max-width desktop 2024-04-02 10:40:04 +03:00
55d414c1d0 0.0.3 replace footer logo max-width desktop 2024-04-02 10:37:45 +03:00
ac6a440151 0.0.3 replace footer logo max-width desktop 2024-04-02 10:32:58 +03:00
ff48ca83e2 0.0.2 replace footer logo max-width 2024-04-02 10:27:09 +03:00
358577745f 0.0.2 replace Logo in footer 2024-04-02 10:14:45 +03:00
087a913a48 0.0.2 replace word in contact form about service 2024-04-02 09:42:13 +03:00
a9dedb7869 0.0.1 replace twb to tripwithbonus on main page 2024-04-02 09:31:58 +03:00
SDE
92e3d76b7e 0.12.27 fix auth 2024-03-27 12:59:38 +03:00
2da7195dd0 0.1.365 add img 2024-03-15 15:38:42 +03:00
18f7fedbc2 0.1.365 add img 2024-03-15 15:37:10 +03:00
aa93813ba5 0.1.364 add new logo fix old css 2024-03-15 15:35:58 +03:00
def3d770ed 0.1.363 add new logo 2024-03-08 16:07:51 +03:00
6b8bcb8ebb 0.1.363 fix misspell 2024-03-07 19:47:50 +03:00
SBD
ff5afe518a 14 2024-03-06 18:22:48 +03:00
SBD
6f42251f5f Merge remote-tracking branch 'origin/main' 2024-03-06 18:11:58 +03:00
SBD
06917078ae 14 2024-03-06 18:11:46 +03:00
38 changed files with 1699 additions and 719 deletions

1
.gitignore vendored
View File

@@ -414,5 +414,4 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
celerybeat-schedule.db

View File

@@ -21,6 +21,9 @@ def get_articles_block_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = request.POST.dict()

View File

@@ -18,7 +18,7 @@ from django.core.files import File
import base64
from django.core.validators import validate_email
from django.urls import reverse
from GeneralApp.funcs import get_and_set_lang
# @login_required(login_url='/profile/login/')
# def subscribe_ajax(request):
@@ -36,6 +36,8 @@ def mailing_subscribe_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
email = request.POST['email']
@@ -80,6 +82,8 @@ def send_message_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
data = request.POST
@@ -212,6 +216,8 @@ def chats_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
from ChatServiceApp.funcs import get_chat_receivers_for_user, get_msgs_for_chat_w_users
receivers, unread_msgs_count = get_chat_receivers_for_user(request.user)
@@ -242,6 +248,8 @@ def support_tickets_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
html = get_profile_support_page_content_html(request)
return JsonResponse({'html': html}, status=200)
@@ -255,6 +263,8 @@ def change_avatar_confirm_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
file_data = json.loads(request.body)
@@ -281,6 +291,8 @@ def change_profile_confirm_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
data = request.POST
if not data:
data = json.loads(request.body)
@@ -354,6 +366,8 @@ def dashboard_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
from .funcs import get_dashboard_page_content_html
@@ -372,6 +386,7 @@ def change_profile_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
html = get_profile_change_page_content_html(request)
return JsonResponse({'html': html}, status=200)
@@ -382,6 +397,8 @@ def my_routes_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
Dict = {
}
@@ -396,6 +413,8 @@ def login_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
data = request.POST
@@ -483,6 +502,9 @@ def registration_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = request.POST

View File

@@ -24,6 +24,9 @@ def get_file_from_msg_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -49,6 +52,9 @@ def show_chat_w_user_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -74,6 +80,9 @@ def update_chat_ajax2(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
res_Dict = {}
msgs = []
Dict = {}
@@ -163,6 +172,9 @@ def update_chat_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
res_Dict = {}
msgs = []
Dict = {}
@@ -381,6 +393,9 @@ def support_show_chat_by_ticket_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -434,6 +449,8 @@ def support_create_ticket_form_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
Dict = {
'form': TicketForm()
@@ -454,6 +471,9 @@ def create_ticket_ajax(request):
if request.method != 'POST':
raise Http404
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
try:
data = request.POST

View File

@@ -47,7 +47,7 @@ class Admin_StaticPage(Admin_Trans_BaseModelViewPage):
if request.user.is_superuser:
return True
if obj.url in ('main', 'spec_technics', 'works'):
if not obj or obj.url in ('main', 'works'):
return False
admin.site.register(StaticPage,Admin_StaticPage)

View File

@@ -1,6 +1,29 @@
from django.http import HttpResponse, Http404, FileResponse
from django.conf import settings
def get_and_set_lang(request):
from django.utils.translation import activate, get_language
lang = None
referer_url = request.META.get('HTTP_REFERER')
if referer_url:
url_list = referer_url.split('//')
if len(url_list) > 1:
url_list = url_list[1].split('/')
if len(url_list) > 1 and url_list[1] in settings.MODELTRANSLATION_LANGUAGES:
lang = url_list[1]
if not lang:
lang = get_language()
if not lang:
lang = 'en'
return activate(lang)
def get_inter_Dict(user):
from SubscribesApp.funcs import get_cur_user_subscribe

View File

@@ -1,3 +0,0 @@
celery -A TWB.celery:app worker -l info
celery -A TWB.celery:app beat -l info

View File

@@ -14,6 +14,7 @@ from django.urls import reverse
from django.db.models import Q
import json
from GeneralApp.funcs import get_inter_http_respose
from GeneralApp.funcs import get_and_set_lang
def get_address_point_ajax(request):
from .funcs import search_cities_in_db, search_airports_in_db
@@ -21,6 +22,9 @@ def get_address_point_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)

View File

@@ -15,12 +15,16 @@ from django.template.loader import render_to_string
from django.urls import reverse
from .forms import *
from .funcs import *
from GeneralApp.funcs import get_and_set_lang
def del_route_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -54,6 +58,8 @@ def edit_route_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
data = json.loads(request.body)
Dict = {}
@@ -99,6 +105,8 @@ def new_route_view_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
# form = RouteForm()
# Dict = {
# 'form': form
@@ -132,6 +140,8 @@ def find_routes_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
@@ -175,6 +185,8 @@ def get_my_routes_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
routes_Dict = get_routes_Dict(request.user)
if 'errors' in routes_Dict:
@@ -206,6 +218,8 @@ def create_or_change_route_ajax(request, route_id=None):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
Dict = {}
try:

View File

@@ -1,5 +1,6 @@
from .models import *
from django.template.loader import render_to_string
from django.utils.translation import get_language, activate
def get_cur_user_subscribe(user):
@@ -26,6 +27,9 @@ def get_profile_subscribe_page_content_html(request):
try:
from GeneralApp.funcs import get_and_set_lang
lang = get_and_set_lang(request)
# data = json.loads(request.body)
# all_options = SubscribeOption.objects.filter(enable=True)
subscribes, all_options = get_subsribes_w_options()

View File

@@ -16,7 +16,7 @@ import json
from datetime import datetime, time, timedelta
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
from GeneralApp.funcs import get_and_set_lang
@login_required(login_url='/profile/login/')
@@ -25,6 +25,8 @@ def subscribe_now_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
try:
data = json.loads(request.body)
@@ -77,6 +79,8 @@ def show_cur_subscribe_ajax(request):
if request.method != 'POST':
raise Http404
lang = get_and_set_lang(request)
html = get_profile_subscribe_page_content_html(request)
return JsonResponse({'html': html}, status=200)

View File

@@ -1,7 +0,0 @@
from rest_framework import serializers
class SubscribersSerializer(serializers.Serializer):
email = serializers.EmailField(error_messages={'invalid': 'Invalid email'})
email_notification = serializers.BooleanField()
auto_subscribe = serializers.BooleanField()

View File

@@ -1,9 +0,0 @@
from django.urls import path
from SubscribesApp.views import SubscribersView
urlpatterns = [
path('auto-subscribe/', SubscribersView.as_view(), name='auto_subscribe'),
]

View File

@@ -1,43 +1,3 @@
from django.contrib.auth.models import User
from django.http import JsonResponse
from rest_framework import status
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from django.shortcuts import render
from SubscribesApp.models import SubscribeForUser
from SubscribesApp.serializers import SubscribersSerializer
class SubscribersView(APIView):
# permission_classes = [IsAuthenticated]
def post(self, request):
serializer = SubscribersSerializer(data=request.data)
if serializer.is_valid():
validated_data = serializer.validated_data
email = validated_data['email']
email_notification = validated_data['email_notification']
auto_subscribe = validated_data['auto_subscribe']
user = User.objects.filter(email=email)
if user:
subscribe_for_user = SubscribeForUser.objects.filter(user_id=user[0].id)
if email_notification:
subscribe_for_user.update(receive_finish_subscribe_msg=True)
else:
subscribe_for_user.update(receive_finish_subscribe_msg=False)
if auto_subscribe:
subscribe_for_user.update(auto_continue=True)
else:
subscribe_for_user.update(auto_continue=False)
return JsonResponse({"message": "Subscriptions updated successfully"}, status=status.HTTP_200_OK)
else:
return JsonResponse({"message": "User not found"}, status=status.HTTP_404_NOT_FOUND)
else:
return JsonResponse(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
# Create your views here.

View File

@@ -1,27 +0,0 @@
from __future__ import absolute_import
import os
from celery import Celery
from celery.schedules import crontab
from django.conf import settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TWB.settings")
app = Celery('bo', include=['TWB.tasks'])
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
app.conf.beat_schedule = {
'update-currency-rates': {
'task': 'TWB.tasks.check_auto_subscribe',
'schedule': crontab(minute=0, hour='*/1'),
},
'subscription_expiration_check': {
'task': 'TWB.tasks.subscription_expiration_check',
'schedule': crontab(hour=0, minute=0),
# 'schedule': crontab(minute='*', hour='*'),
},
}
app.conf.broker_url = settings.CELERY_BROKER_URL

View File

@@ -11,7 +11,6 @@ https://docs.djangoproject.com/en/4.2/ref/settings/
"""
from pathlib import Path
from decouple import config
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -61,6 +60,7 @@ AUTHENTICATION_BACKENDS = [
]
SOCIALACCOUNT_PROVIDERS = {
'google': {
'SCOPE': [
@@ -172,8 +172,11 @@ CHANNEL_LAYERS = {
}
POSTGRES_DB = config('POSTGRES_DB')
POSTGRES_USER = config('POSTGRES_USER')
# Database
@@ -182,8 +185,8 @@ POSTGRES_USER = config('POSTGRES_USER')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': POSTGRES_DB,
'USER': POSTGRES_USER,
'NAME': 'twbDB',
'USER': 'test_user',
'PASSWORD': 'test_db_pass',
'HOST': '127.0.0.1',
'PORT': '5432',
@@ -333,16 +336,6 @@ CKEDITOR_CONFIGS = {
}
}
CELERY_BROKER_URL = config('CELERY_BROKER_URL')
CELERY_RESULT_BACKEND = config('CELERY_RESULT_BACKEND')
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = config('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')
# CKEDITOR_OPTIONS = {
# 'height': 291,

View File

@@ -1,40 +0,0 @@
from datetime import datetime, timedelta, timezone
from SubscribesApp.models import SubscribeForUser
from TWB import settings
from TWB.celery import app
from django.core.mail import send_mail
@app.task
def check_auto_subscribe():
current_time = datetime.now()
subscribes = SubscribeForUser.objects.filter(auto_continue=True)
if subscribes:
for subscribe in subscribes:
if subscribe.paid_period_to_DT and subscribe.paid_period_to_DT <= current_time + timedelta(hours=1):
user_email = subscribe.user.email
subject = 'Подписка продлена!'
message = 'Ваша подписка успешно продлена!'
send_mail(subject, message, settings.EMAIL_HOST_USER, [user_email], fail_silently=False)
else:
print('Нету подписок')
@app.task
def subscription_expiration_check():
current_time = datetime.now()
subscribes = SubscribeForUser.objects.filter(paid_period_to_DT__gte=current_time)
if subscribes:
for subscribe in subscribes:
expiration_date = subscribe.paid_period_to_DT
remaining_days = (expiration_date - current_time).days
if remaining_days <= 7:
message = f'Ваша подписка заканчивается через {remaining_days} дня. Пожалуйста, продлите её.'
user_email = subscribe.user.email
subject = 'Подписка истекает!'
send_mail(subject, message, settings.EMAIL_HOST_USER, [user_email], fail_silently=False)
else:
print('Нету подписок')

View File

@@ -1,3 +1,4 @@
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
@@ -8,6 +9,7 @@ from AuthApp.views import login_View
handler404 = Page404
urlpatterns = [
# path('admin/', admin.site.urls),
path('ckeditor/', include('ckeditor_uploader.urls')),
path('i18n/', include('django.conf.urls.i18n')),
@@ -37,9 +39,7 @@ urlpatterns = [
path('test_404', Page404, name='page_404'),
path('', include('PushMessages.urls')),
path('', include('SubscribesApp.urls')),
path('', include('PushMessages.urls'))
]
from django.conf.urls.i18n import i18n_patterns

View File

@@ -1,8 +0,0 @@
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
POSTGRES_DB=
POSTGRES_USER=
CELERY_BROKER_URL=
CELERY_RESULT_BACKEND=

File diff suppressed because it is too large Load Diff

View File

@@ -2,6 +2,7 @@ Django==4.2.2
django-ckeditor==6.5.1
psycopg2-binary==2.9.6
requests
Pillow==9.5.0
django-modeltranslation==0.18.10
overpass
geopy
@@ -12,6 +13,5 @@ django-colorfield
django-webpush==0.3.5
django-allauth==0.60.0
pytz==2024.1
celery==5.3.6
djangorestframework==3.14.0
python-decouple==3.8
#django-tz-detect==0.4.0

View File

@@ -121,6 +121,10 @@
width: 70%;
}
.dropdown{
vertical-align: sub;
}
.handler_curtain_left{
display: block;
}
@@ -136,6 +140,10 @@
transition: 200ms;
}
.unsubscribe_info {
font-size: 12px;
}
.container_content_handler_curtain_left{
display: flex;
rotate: 90deg;
@@ -254,7 +262,7 @@
}
header{
padding: 5px 16px;
padding: 3px 16px;
margin-top: unset;
}
.header_logo, .header_btn_mover, .header_btn_sender{
@@ -386,11 +394,14 @@
margin-left: 5px;
}
.header_logo_mobile {
margin-right: 37px;
margin-right: 20px;
}
.line_f_header{
top: 43px;
}
header .header-second{
margin-top: 3px;
}
.self_news_img{
width: 40%;
@@ -495,6 +506,8 @@
.footer_logo{
text-align: center;
margin: 40px 0;
max-width: 90px;
margin-left: 43%;
}
.footer_text_sub{

View File

@@ -2201,7 +2201,7 @@ a.open_inf_carrier{
height: 1px;
background: #dad7d7;
width: 100%;
top: 60px;
top: 100px;
z-index: 999;
}

View File

@@ -299,7 +299,8 @@ section.register>h1 {
margin-bottom: 10px;
}
.footer_logo{
margin-bottom: 40px;
margin-bottom: 20px;
max-width: 45px;
}
footer>div {
@@ -502,10 +503,12 @@ footer>div {
header .header-first {
float: left;
margin-top: 12px;
/*margin-top: 12px;*/
}
.header_logo_mobile{
display: none;
}
@@ -663,6 +666,7 @@ header>div>a>span{
header .header-second {
float: right;
margin-top: 20px;
}
@@ -2620,6 +2624,17 @@ button#send_feedback_form:active{
/* display: block;*/
/*}*/
.unsubscribe_info {
color: #27242499;
font-size: 12px;
margin-top: 5px;
background-color: white;
border-radius: 10px;
}
.tab-btn-1,
.tab-btn-2 {
display: inline-block;

BIN
static/img/1234.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
static/img/png/finlogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -6,10 +6,12 @@ function update_count_unread_messages (data) {
let list_unrd_parent = document.querySelectorAll(".icon_unread_messages")
let i = 0
for (i;i < list_unrd.length;i++){
if (!list_unrd_parent[i].classList.contains("showed")){
list_unrd_parent[i].classList.toggle("showed")
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
}
list_unrd[i].innerHTML = data.unread_msgs_count.toString()
}
}
}

View File

@@ -78,15 +78,15 @@
<div class="sf_1_column">Copyright © 2023. {% trans "Все права защищены." %}</div>
<div class="sf_2_column">
<a href="/ru/info_page/publichnaya-oferta/">{% trans "Публичная оферта" %}</a>
<a href="/{{ request.LANGUAGE_CODE }}/info_page/publichnaya-oferta/">{% trans "Публичная оферта" %}</a>
</div>
<div class="sf_3_column">
<a href="/ru/info_page/politika-konfidencialnosti/">{% trans "Политика конфиденциальности" %}</a>
<a href="/{{ request.LANGUAGE_CODE }}/info_page/politika-konfidencialnosti/">{% trans "Политика конфиденциальности" %}</a>
</div>
<div class="sf_4_column">
<a href="/ru/info_page/pravila-polzovaniya-servisom/">{% trans "Правила пользования сервисом" %}</a>
<a href="/{{ request.LANGUAGE_CODE }}/info_page/pravila-polzovaniya-servisom/">{% trans "Правила пользования сервисом" %}</a>
</div>
</div>

View File

@@ -7,12 +7,12 @@
<div class="header-first">
<div class="header_logo">
<a href="{% url 'main' %}">
<img class="svg" src="/static/img/svg/Logo.svg">
<img class="svg" src="/static/img/png/finlogo.png" style="height: 90px;">
</a>
</div>
<div class="header_logo_mobile">
{# <a href="/"><img class="svg" src="/static/img/svg/LogoMobile.svg"></a>#}
<a href="{% url 'main' %}"><img class="svg" src="/static/img/svg/LogoMobile.svg"></a>
<a href="{% url 'main' %}"><img class="svg" src="/static/img/png/finlogo.png" style="height: 30px;"></a>
</div>
<div class="dropdown">

View File

@@ -67,7 +67,7 @@
</div>
<button class="confirm_profile_btn" onclick="change_profile_confirm(this)">
<p id="save_changes_txt">
{% translate "Сохарнить" %}
{% translate "Сохранить" %}
</p>
<p id="changes_saved_txt">
{% translate "Изменения сохранены" %}

View File

@@ -10,6 +10,7 @@
<div class="title_subscribe">{% translate "Ваш тарифный план" %}</div>
<div class="name_subscribe">{{ subscribe_for_user.subscribe.name }}</div>
<button class="extend_subscribe_btn">{% translate "Продлить" %}</button>
<div class="unsubscribe_info">*{% translate "для отмены подписки создайте запрос в техподдерже" %}</div>
<div class="subscribe_was_paid">{% translate "оплачен до:" %} {{ subscribe_for_user.paid_period_to_DT|date:"d.m.y" }}</div>
</div>
<div class="wrapper_switch_cont">

View File

@@ -55,6 +55,8 @@
</div>
<div class="text-align-center">
<button onclick="send_subscribe({{ subscribe.id }})" class="arrange_subscribe">{% translate "Оформить подписку" %}</button>
<div class="unsubscribe_info">*{% translate "для отмены подписки создайте запрос в техподдерже" %}</div>
</div>
</div>
{% endfor %}

View File

@@ -61,7 +61,7 @@
<div class="form_wrapper">
{% if page.url == 'contacts' or page.url == 'about_service' %}
<div id=title_static>{% blocktrans %}Мы всегда на <span class="color_title">связи</span>!{% endblocktrans %}</div>
<div id=title_static>{% blocktrans %}Мы всегда на <span class="color_title">связи!</span>{% endblocktrans %}</div>
<span id="sub_title_static">{% translate "У вас есть вопрос? Отправьте нам сообщение" %}</span>
{% endif %}

View File

@@ -2,7 +2,7 @@
{% load static %}
{% if page.url == 'contacts' or page.url == 'about_service' %}
<div id=title_static>{% blocktrans %}Мы всегда на <span class="color_title">связи</span>!{% endblocktrans %}</div>
<div id=title_static>{% blocktrans %}Мы всегда на <span class="color_title">связи!</span>{% endblocktrans %}</div>
<span id="sub_title_static">{% translate "У вас есть вопрос? Отправьте нам сообщение" %}</span>
{% endif %}

View File

@@ -1,7 +1,7 @@
{% load i18n %}
{% if page.url == 'contacts' or page.url == 'about_service' %}
<div id=title_static>{% blocktrans %}Мы всегда на <span class="color_title">связи</span>!{% endblocktrans %}</div>
<div id=title_static>{% blocktrans %}Мы всегда на <span class="color_title">связи!</span>{% endblocktrans %}</div>
<span id="sub_title_static">{% translate "У вас есть вопрос? Отправьте нам сообщение" %}</span>
{% endif %}

View File

@@ -58,7 +58,7 @@
<h2 id="title_static">{% translate "О сервисе Trip With Bonus" %}</h2>
<span id="sub_title_static">
<p>
{% translate "TWB — это сервис, созданный для того, чтобы отправитель и перевозчик нашли друг-друга!" %}
{% translate "TripWithBonus — это сервис, созданный для того, чтобы отправитель и перевозчик нашли друг-друга!" %}
{% translate "Наш сервис предлагает вам прямые контакты, а не является посредником!" %}
</p>
</span>