Игорь Надеин 35f365a1b0 feat: Add department-based document distribution with department picker in UI
- Added departments ManyToMany field to Document model
- Implemented department selection in document create/edit modals
- Added automatic notification creation for all department employees
- Fixed document filtering to include uploaded documents in 'My Documents'
- Fixed acknowledgements API to include department recipients
- Added bulk notification support with configurable threshold
- Removed acknowledge button, added visual highlighting for unread documents
- Implemented server-side acknowledgment flow with redirect to file
- Fixed mobile responsive layout for document actions
- Removed temporary test files and documentation
2025-11-21 12:46:43 +03:00

24 lines
930 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ site_name }} - {{ digest_name }} дайджест
{{ '=' * 60 }}
У вас {{ total_count }} {% if total_count == 1 %}новое уведомление{% elif total_count < 5 %}новых уведомления{% else %}новых уведомлений{% endif %}
{% for category_code, notifs in grouped_notifications.items %}
{{ category_icons|get_item:category_code }} {{ notifs.0.notification_type.category.name }} ({{ notifs|length }})
{{ '-' * 60 }}
{% for notification in notifs %}
• {{ notification.title }}
{{ notification.message|truncatewords:30 }}
{{ notification.created_at|date:"d.m.Y H:i" }}
{% if notification.action_url %}→ {{ site_url }}{{ notification.action_url }}{% endif %}
{% endfor %}
{% endfor %}
---
Посмотреть все уведомления: {{ site_url }}/notifications/
Управление уведомлениями: {{ site_url }}/notifications/settings/
{{ site_url }}