{% extends "base.html" %} {% block title %}Notificações Internas - RH{% endblock %} {% block content %}
| Data/Hora | Funcionário | Nível | Título | Referência | Status | Ação |
|---|---|---|---|---|---|---|
| {{ n.data_evento.strftime('%d/%m/%Y %H:%M:%S') if n.data_evento else '-' }} | {{ n.funcionario_nome or 'Não identificado' }} | {% if (n.nivel or 'alerta') == 'critico' %} crítico {% else %} alerta {% endif %} |
{{ n.titulo or '-' }}
{% if n.origem and n.origem.startswith('rh_ponto_fora_perimetro:') %}
Perímetro
{% endif %}
{% if n.mensagem %}
{{ n.mensagem }}
{% endif %}
|
{% if n.origem and n.origem.startswith('rh_ponto_fora_perimetro:') %}
Batida fora do perímetro
Origem: app funcionário / geolocalização
{% elif (n.referencia_total_eventos or 0) > 0 or (n.referencia_periodo_dias or 0) > 0 %}
{{ n.referencia_total_eventos or 0 }} eventos
{{ n.referencia_periodo_dias or 0 }} dias
{% else %}
Sem referência numérica
{% endif %}
{% if not n.lida %}
Aberta há {{ n.horas_abertas or 0 }}h
{% endif %}
{% if n.sla_critico_estourado %}
SLA > {{ sla_critico_horas or 24 }}h
{% endif %}
|
{% if n.lida %}
lida
{{ n.data_leitura.strftime('%d/%m/%Y %H:%M') if n.data_leitura else '-' }}
{% else %}
pendente
{% endif %}
|
{% if n.funcionario_id %}
{% set competencia_evento = n.data_evento.strftime('%Y-%m') if n.data_evento else '' %}
Abrir espelho
Cadastro
{% if not n.lida %}
{% endif %}
{% elif not n.lida %}
{% else %}
—
{% endif %}
|
| Nenhuma notificação para os filtros selecionados. | ||||||