Skip to content

Commit

Permalink
Add permalink to statement time
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmulley committed Dec 28, 2024
1 parent 737ecc2 commit cd8baf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions parliament/static/scss/_hansard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
.partytag {
font-weight: bold;
}
.statement_time_permalink {
color: #555555;
font-weight: normal;
}
}

// Long statement truncation
Expand Down
2 changes: 1 addition & 1 deletion parliament/templates/hansards/statement_page.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% if statement.h2 %}
<p><strong class="statement_topic">{% if statement.h3 %}{{ statement.h3 }}</strong><span class="br"></span>{{ statement.h2 }}{% else %}{{ statement.h2 }}</strong>{% endif %}<span class="br"></span>{{ statement.h1 }}</p>
{% endif %}{# endif h1 #}
<p>{% 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 %}<strong>{{ statement.time|date:"F jS" }}</strong>, {% endif %}{% endif %}{# double endif for hansard.date #}{{ statement.time|date:"P"|capfirst }}{% endif %}{# endif full_date #}
<p><a class="statement_time_permalink" href="{{ statementurl }}only/">{% 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 %}<strong>{{ statement.time|date:"F jS" }}</strong>, {% endif %}{% endif %}{# double endif for hansard.date #}{{ statement.time|date:"P"|capfirst }}{% endif %}{# endif full_date #}</a></p>
{% endif %}{# endif statement.who #}
{% if statements_context_link %}<br><a href="{{ statementurl }}">See
context</a>{% endif %}{# endif context_link #}
Expand Down

0 comments on commit cd8baf4

Please sign in to comment.