From cd8baf44211b0619606643419ef0ed556a3a5f10 Mon Sep 17 00:00:00 2001 From: Michael Mulley Date: Sat, 28 Dec 2024 13:33:30 -0330 Subject: [PATCH] Add permalink to statement time --- parliament/static/scss/_hansard.scss | 4 ++++ parliament/templates/hansards/statement_page.inc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/parliament/static/scss/_hansard.scss b/parliament/static/scss/_hansard.scss index 9d0dbdd3..2ead8af8 100644 --- a/parliament/static/scss/_hansard.scss +++ b/parliament/static/scss/_hansard.scss @@ -79,6 +79,10 @@ .partytag { font-weight: bold; } + .statement_time_permalink { + color: #555555; + font-weight: normal; + } } // Long statement truncation diff --git a/parliament/templates/hansards/statement_page.inc b/parliament/templates/hansards/statement_page.inc index b91af7f7..f0facf9f 100644 --- a/parliament/templates/hansards/statement_page.inc +++ b/parliament/templates/hansards/statement_page.inc @@ -22,7 +22,7 @@ {% if statement.h2 %}

{% if statement.h3 %}{{ statement.h3 }}{{ statement.h2 }}{% else %}{{ statement.h2 }}{% endif %}{{ statement.h1 }}

{% endif %}{# endif h1 #} -

{% if statements_full_date or highlight_statement == statement %}{{ statement.time|date:"F jS, Y / P" }}{% else %}{% if hansard %}{% if hansard.date.day != statement.time.day %}{{ statement.time|date:"F jS" }}, {% endif %}{% endif %}{# double endif for hansard.date #}{{ statement.time|date:"P"|capfirst }}{% endif %}{# endif full_date #} +

{% if statements_full_date or highlight_statement == statement %}{{ statement.time|date:"F jS, Y / P" }}{% else %}{% if hansard %}{% if hansard.date.day != statement.time.day %}{{ statement.time|date:"F jS" }}, {% endif %}{% endif %}{# double endif for hansard.date #}{{ statement.time|date:"P"|capfirst }}{% endif %}{# endif full_date #}

{% endif %}{# endif statement.who #} {% if statements_context_link %}
See context{% endif %}{# endif context_link #}