Поменял название системы в футере и ввел версионностьы
All checks were successful
Deploy MES Core / deploy (push) Successful in 11s

This commit is contained in:
2026-04-16 23:20:40 +03:00
parent ef30e5ebb8
commit c558eb1416
5 changed files with 16 additions and 1 deletions

View File

@@ -13,6 +13,9 @@
## Доступы (UI) ## Доступы (UI)
- Доработать видимость и действия для разных ролей/цехов: фильтрация по allowed_workshops, замещение, read-only руководитель. - Доработать видимость и действия для разных ролей/цехов: фильтрация по allowed_workshops, замещение, read-only руководитель.
## Горячие клавиши (UI)
- Унифицировать shortcuts по приложению (Enter/Esc и др.): сохранить/назад/сброс фильтров, поведение в модалках, кроссбраузерность.
## Списание (UI) ## Списание (UI)
- Доработать страницу «Списание»: фильтры, удобная сводка по материалам/изделиям и отметка «внесено в 1С». - Доработать страницу «Списание»: фильтры, удобная сводка по материалам/изделиям и отметка «внесено в 1С».

View File

@@ -30,6 +30,7 @@ if os.path.exists(env_file):
# читаем переменную окружения # читаем переменную окружения
ENV_TYPE = os.getenv('ENV_TYPE', 'local') ENV_TYPE = os.getenv('ENV_TYPE', 'local')
APP_VERSION = '0.7.1'
# Настройки безопасности # Настройки безопасности
# DEBUG будет True везде, кроме сервера # DEBUG будет True везде, кроме сервера

View File

View File

@@ -0,0 +1,9 @@
from django import template
from django.conf import settings
register = template.Library()
@register.simple_tag
def app_version() -> str:
return str(getattr(settings, 'APP_VERSION', '0.0.0'))

View File

@@ -1,8 +1,10 @@
{% load app_meta %}
<footer class="footer-custom mt-auto py-3 border-top border-secondary"> <footer class="footer-custom mt-auto py-3 border-top border-secondary">
<div class="container-fluid text-center"> <div class="container-fluid text-center">
<div class="text-muted small">Система учета сменных заданий</div> <div class="text-muted small">Система mini-MES / оперативное управление производством</div>
<div class="text-muted small"> <div class="text-muted small">
разработана <strong>ACK</strong> &copy; 2026 разработана <strong>ACK</strong> &copy; 2026
<span class="ms-2">v{% app_version %}</span>
<i class="bi bi-cpu ms-2 text-accent"></i> <i class="bi bi-cpu ms-2 text-accent"></i>
{% if user.is_superuser %} {% if user.is_superuser %}
<span class="badge bg-dark border border-secondary text-muted fw-normal ms-1" style="font-size: 0.65rem; vertical-align: middle;"> <span class="badge bg-dark border border-secondary text-muted fw-normal ms-1" style="font-size: 0.65rem; vertical-align: middle;">