diff --git a/sapl/templates/base/RelatorioMateriasPorAutor_filter.html b/sapl/templates/base/RelatorioMateriasPorAutor_filter.html
index e3591191b..2690b5d4e 100644
--- a/sapl/templates/base/RelatorioMateriasPorAutor_filter.html
+++ b/sapl/templates/base/RelatorioMateriasPorAutor_filter.html
@@ -15,11 +15,14 @@
PARÂMETROS DE PESQUISA:
Autor: {{ autor }}
Tipo de matéria: {{ tipo }}
- Data de apresentação: {{periodo}}
- {% if object_list %}
+ Data de apresentação: {{ periodo }}
+
+ {% if materias_resultado %}
| QUADRO GERAL | ||
|---|---|---|
| QUADRO GERAL | +||
| Tipo Matéria | Quantidade | @@ -33,44 +36,41 @@|
| Autor: {{ materia.autoria_set.first.autor }} | ||
| Matéria | -Ementa | -Coautor(es) | -
| - {{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}} - | -{% autoescape off %}{{materia.ementa}} {{materia.observacao}}{% endautoescape %} |
-
- {% if materia.autoria_set.first != materia.autoria_set.last %}
- {% for autor in materia.autoria_set.all %}
- {% if not autor.primeiro_autor %}
- {{ autor.autor }} - {% endif %} - {% endfor %} - {% endif %} - |
-
| Matéria | +Ementa | +Autor(es) | +
| + + {{materia.tipo.sigla}} {{materia.numero}}/{{materia.ano}} + + | +{% autoescape off %}{{materia.ementa}} {{materia.observacao}}{% endautoescape %} |
+
+ {% for autor in materia.autoria_set.all %}
+ {% if not autor.primeiro_autor %}
+ {{ autor.autor }} + {% else %} + {{ autor.autor }} + {% endif %} + {% endfor %} + |
+