From 06ad57d3dfc1d414ff74e6d17f88117dae5864fe Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 21 Feb 2019 16:05:14 +0100 Subject: [PATCH] grenoble-metropole-2019: user dashboard items are links (#26506) --- static/grenoble-metropole-2019/_custom.scss | 6 ++++-- .../combo/json/user-dashboard-item.html | 4 ++-- .../combo/json/user-demands-number.html | 2 +- .../combo/json/user-drafts-number.html | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/static/grenoble-metropole-2019/_custom.scss b/static/grenoble-metropole-2019/_custom.scss index 0dc79494..19f64eb4 100644 --- a/static/grenoble-metropole-2019/_custom.scss +++ b/static/grenoble-metropole-2019/_custom.scss @@ -596,13 +596,15 @@ div.configjsoncell.user { div.user-infos { @include vendor-prefix(flex-grow, 2); } - div.user-dashboard-item { + a.user-dashboard-item { background: $primary-color; font-weight: bold; - font-size: 125%; + font-size: 110%; + text-decoration: none; padding: 10px 30px 10px 55px; position: relative; margin: 0 15px 0 20px; + display: inline-block; div.dashboard-item-label, div.dashboard-item-value { text-align: center; } diff --git a/templates/variants/grenoble-metropole-2019/combo/json/user-dashboard-item.html b/templates/variants/grenoble-metropole-2019/combo/json/user-dashboard-item.html index 849cf4b9..235785e9 100644 --- a/templates/variants/grenoble-metropole-2019/combo/json/user-dashboard-item.html +++ b/templates/variants/grenoble-metropole-2019/combo/json/user-dashboard-item.html @@ -1,4 +1,4 @@ -
+
{{ label }}
{{ value }}
-
+ diff --git a/templates/variants/grenoble-metropole-2019/combo/json/user-demands-number.html b/templates/variants/grenoble-metropole-2019/combo/json/user-demands-number.html index eb575708..ca0f0fe8 100644 --- a/templates/variants/grenoble-metropole-2019/combo/json/user-demands-number.html +++ b/templates/variants/grenoble-metropole-2019/combo/json/user-demands-number.html @@ -1,3 +1,3 @@ -{% include "combo/json/user-dashboard-item.html" with label="En cours" value=json.data|length item_type="demands" %} +{% include "combo/json/user-dashboard-item.html" with label="En cours" value=json.data|length item_type="demands" url=user_demands_page_url %} diff --git a/templates/variants/grenoble-metropole-2019/combo/json/user-drafts-number.html b/templates/variants/grenoble-metropole-2019/combo/json/user-drafts-number.html index f3a1a829..c9c24859 100644 --- a/templates/variants/grenoble-metropole-2019/combo/json/user-drafts-number.html +++ b/templates/variants/grenoble-metropole-2019/combo/json/user-drafts-number.html @@ -1 +1 @@ -{% include "combo/json/user-dashboard-item.html" with label="Brouillons" value=json.data|length item_type="drafts" %} +{% include "combo/json/user-dashboard-item.html" with label="Brouillons" value=json.data|length item_type="drafts" url=user_drafts_page_url %}