Поменял название системы в футере и ввел версионностьы
All checks were successful
Deploy MES Core / deploy (push) Successful in 11s
All checks were successful
Deploy MES Core / deploy (push) Successful in 11s
This commit is contained in:
3
TODO.md
3
TODO.md
@@ -13,6 +13,9 @@
|
||||
## Доступы (UI)
|
||||
- Доработать видимость и действия для разных ролей/цехов: фильтрация по allowed_workshops, замещение, read-only руководитель.
|
||||
|
||||
## Горячие клавиши (UI)
|
||||
- Унифицировать shortcuts по приложению (Enter/Esc и др.): сохранить/назад/сброс фильтров, поведение в модалках, кроссбраузерность.
|
||||
|
||||
## Списание (UI)
|
||||
- Доработать страницу «Списание»: фильтры, удобная сводка по материалам/изделиям и отметка «внесено в 1С».
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ if os.path.exists(env_file):
|
||||
|
||||
# читаем переменную окружения
|
||||
ENV_TYPE = os.getenv('ENV_TYPE', 'local')
|
||||
APP_VERSION = '0.7.1'
|
||||
|
||||
# Настройки безопасности
|
||||
# DEBUG будет True везде, кроме сервера
|
||||
|
||||
0
shiftflow/templatetags/__init__.py
Normal file
0
shiftflow/templatetags/__init__.py
Normal file
9
shiftflow/templatetags/app_meta.py
Normal file
9
shiftflow/templatetags/app_meta.py
Normal 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'))
|
||||
@@ -1,8 +1,10 @@
|
||||
{% load app_meta %}
|
||||
<footer class="footer-custom mt-auto py-3 border-top border-secondary">
|
||||
<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">
|
||||
разработана <strong>ACK</strong> © 2026
|
||||
<span class="ms-2">v{% app_version %}</span>
|
||||
<i class="bi bi-cpu ms-2 text-accent"></i>
|
||||
{% 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;">
|
||||
|
||||
Reference in New Issue
Block a user