From 32fb40548a0bf4194892503b20ad2f915c1ddcde Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 24 Dec 2018 04:12:39 -0400 Subject: [PATCH] Display resolved attribute URL or fallback Update template code to display the resolved attribute's absolute_url and if it doesn't provide it, fallback to display the main object's absolute_url. Signed-off-by: Roberto Rosario --- .../templates/appearance/generic_list_items_subtemplate.html | 2 +- .../templates/appearance/generic_list_subtemplate.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html b/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html index f689392af0..054fa867f2 100644 --- a/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html +++ b/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html @@ -75,7 +75,7 @@ {% get_source_columns source=object only_identifier=True as source_column %} {% source_column_resolve column=source_column as column_value %} {% if source_column.is_absolute_url %} - {{ column_value }} + {{ column_value }} {% else %} {{ column_value }} {% endif %} diff --git a/mayan/apps/appearance/templates/appearance/generic_list_subtemplate.html b/mayan/apps/appearance/templates/appearance/generic_list_subtemplate.html index 12f69cc96c..31babe902e 100644 --- a/mayan/apps/appearance/templates/appearance/generic_list_subtemplate.html +++ b/mayan/apps/appearance/templates/appearance/generic_list_subtemplate.html @@ -108,7 +108,7 @@ {% if column_value %} {% if source_column.is_absolute_url %} - {{ column_value }} + {{ column_value }} {% else %} {{ column_value }} {% endif %}