From 1a8f68f48e6dc6ddfa9964eec1b7c223ae5b0af9 Mon Sep 17 00:00:00 2001 From: Luciano Almeida Date: Tue, 27 Sep 2016 10:26:06 -0300 Subject: [PATCH] =?UTF-8?q?Arruma=20bot=C3=A3o=20indevido=20para=20usu?= =?UTF-8?q?=C3=A1rio=20an=C3=B4nimo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luciano Almeida --- sapl/templates/compilacao/text_list.html | 4 +++- sapl/templates/compilacao/textoarticulado_detail.html | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sapl/templates/compilacao/text_list.html b/sapl/templates/compilacao/text_list.html index 933c2992e..f6b81c2f0 100644 --- a/sapl/templates/compilacao/text_list.html +++ b/sapl/templates/compilacao/text_list.html @@ -14,7 +14,9 @@ {% block actions %}
- {% trans 'Editar Texto' %} + {% if user.is_authenticated %} + {% trans 'Editar Texto' %} + {% endif %}
{% endblock actions %} diff --git a/sapl/templates/compilacao/textoarticulado_detail.html b/sapl/templates/compilacao/textoarticulado_detail.html index 59492662a..b89a4ab9a 100644 --- a/sapl/templates/compilacao/textoarticulado_detail.html +++ b/sapl/templates/compilacao/textoarticulado_detail.html @@ -16,7 +16,7 @@
  • {% model_verbose_name_plural 'sapl.compilacao.models.Publicacao' %}
  • {% trans 'Notificações' %}
  • {% trans 'Texto' %}
  • - {%endif %} + {% endif %} {% endblock %} @@ -25,9 +25,11 @@ {% block actions %} {% endblock actions %}