From 4486ee3e4adb10d15c5544b905be6683fbff2a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 8 Dec 2018 15:11:30 +0100 Subject: [PATCH] wcs: don't add links to unreachable forms (#28778) --- combo/apps/wcs/templates/combo/wcs/list_of_forms.html | 2 +- data/themes/gadjo/static/css/agent-portal.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/combo/apps/wcs/templates/combo/wcs/list_of_forms.html b/combo/apps/wcs/templates/combo/wcs/list_of_forms.html index 648a8c43..4711a450 100644 --- a/combo/apps/wcs/templates/combo/wcs/list_of_forms.html +++ b/combo/apps/wcs/templates/combo/wcs/list_of_forms.html @@ -4,7 +4,7 @@ {% for data in forms.data|dictsortreversed:"form_receipt_datetime" %} {% if data.url and data.title %}
  • {{data.name}} + {% if data.readable %}href="{{ data.url }}"{% endif %}>{{data.name}} {{data.form_number}} {{data.status}}
  • {% endif %} diff --git a/data/themes/gadjo/static/css/agent-portal.scss b/data/themes/gadjo/static/css/agent-portal.scss index be84d8a3..1c4e361b 100644 --- a/data/themes/gadjo/static/css/agent-portal.scss +++ b/data/themes/gadjo/static/css/agent-portal.scss @@ -170,6 +170,9 @@ div.links-list { display: block; padding: 1rem; border: none; + &:not([href]) { + color: inherit; + } } &:hover { -- 2.20.0.rc2