From ccae7ada4bbe9e62f9990d9cd5979b331aa9b589 Mon Sep 17 00:00:00 2001 From: Iurii Tatishchev Date: Sat, 29 May 2021 23:23:29 -0700 Subject: [PATCH] Rename title for statistic and work pages --- main/templates/base/menu.html | 2 +- main/templates/pages/statistic.html | 2 +- main/templates/pages/work.html | 2 +- main/views.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main/templates/base/menu.html b/main/templates/base/menu.html index e6d456f..3f6dc57 100644 --- a/main/templates/base/menu.html +++ b/main/templates/base/menu.html @@ -40,7 +40,7 @@ {% else %} class="btn btn-secondary" {% endif %} - href="{{ work_url }}">Запрос прав + href="{{ work_url }}">Мои Права {% endif %} Выйти {% else %} diff --git a/main/templates/pages/statistic.html b/main/templates/pages/statistic.html index c4f0546..41adb92 100644 --- a/main/templates/pages/statistic.html +++ b/main/templates/pages/statistic.html @@ -4,7 +4,7 @@ {% block title %}{{ pagename }}{% endblock %} -{% block heading %} Страницы просмотра статистики{% endblock %} +{% block heading %} Статистика {% endblock %} {% block content%}
diff --git a/main/templates/pages/work.html b/main/templates/pages/work.html index f2fa64c..84ad61c 100644 --- a/main/templates/pages/work.html +++ b/main/templates/pages/work.html @@ -4,7 +4,7 @@ {% block title %}{{ pagename }}{% endblock %} -{% block heading %}Управление правами{% endblock %} +{% block heading %}Мои Права{% endblock %} {% block extra_css %} diff --git a/main/views.py b/main/views.py index c90cd16..b26c062 100644 --- a/main/views.py +++ b/main/views.py @@ -203,7 +203,7 @@ def work_page(request: WSGIRequest, required_id: int) -> HttpResponse: 'agents': light_agents, 'messages': messages.get_messages(request), 'licences_remaining': max(0, ZENDESK_MAX_AGENTS - len(engineers)), - 'pagename': 'Управление правами', + 'pagename': 'Мои Права', 'get_tickets_form': WorkGetTicketsForm() } return render(request, 'pages/work.html', context) @@ -416,7 +416,7 @@ def statistic_page(request: WSGIRequest) -> HttpResponse: if not request.user.has_perm("main.has_control_access"): return redirect('index') context = { - 'pagename': 'страница статистики', + 'pagename': 'Статистика', 'errors': list(), } if request.method == "POST":