From 817782a8532d0e4cd5dffb5b94777e2d35aa2057 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 5 Oct 2016 16:08:46 -0300 Subject: [PATCH] Adiciona link a campos URL no detail e listagem --- sapl/templates/crud/detail_detail.html | 7 +++++-- sapl/templates/crud/list.html | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sapl/templates/crud/detail_detail.html b/sapl/templates/crud/detail_detail.html index 006ec1b57..c72be069a 100644 --- a/sapl/templates/crud/detail_detail.html +++ b/sapl/templates/crud/detail_detail.html @@ -37,8 +37,11 @@

{{ column.verbose_name }}

-
{{ column.text|safe }}
-
+ {% if column.text|url %} + + {% else %} +
{{ column.text|safe }}
+ {% endif %}
{% endfor %} diff --git a/sapl/templates/crud/list.html b/sapl/templates/crud/list.html index d89caab5d..0d71b7760 100644 --- a/sapl/templates/crud/list.html +++ b/sapl/templates/crud/list.html @@ -60,7 +60,11 @@ {% if href %} {{ value|safe }} {% elif valu != 'core.Cep.None' %} - {{ value|safe }} + {% if value|url %} + {{ value|safe }} + {% else %} + {{ value|safe }} + {% endif %} {% endif %} {% endfor %}