From 887efb176ba6e3f9ca8119daa483a17bbf46dacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Sconetto?= Date: Thu, 14 Jun 2018 13:46:36 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20aus=C3=AAncia=20de=20objetos=20em=20e?= =?UTF-8?q?xpediente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sessao/blocos_resumo/expedientes.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/sapl/templates/sessao/blocos_resumo/expedientes.html b/sapl/templates/sessao/blocos_resumo/expedientes.html index 63b3e0d4e..cb6b63710 100644 --- a/sapl/templates/sessao/blocos_resumo/expedientes.html +++ b/sapl/templates/sessao/blocos_resumo/expedientes.html @@ -1,12 +1,17 @@ {% load common_tags %} -{% if e %} +{% if expedientes %}
{% for e in expedientes %} - {{e.tipo}} - - {% autoescape off %} - {{e.conteudo|safe}} - {% endautoescape %} + {% if e.conteudo %} + {{e.tipo}} + + {% autoescape off %} + {{e.conteudo|safe}} + {% endautoescape %} + {% else %} + {{e.tipo}} +
Não há textos descritos para {{e.tipo}}.
+ {% endif %}
{% endfor %} {% else %}