Skip to content

Commit

Permalink
Turn LAD, LPA and parish references into links (#223)
Browse files Browse the repository at this point in the history
* LPA/LAD references as links

* Link LAD,LPA and parishes to statistical-geography entity

* Fixed quotes
  • Loading branch information
psd authored Nov 21, 2023
1 parent 10c4f7c commit 983571a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/templates/components/entity-value/macro.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
<code class="app-code-block" tabindex="0">{{ value }}</code>
{%- elif field in ["local-resilience-forum","local-authority-type","ownership-status","planning-permission-type","planning-permission-type","planning-permission-status","green-belt-core","ancient-woodland-status","design-code-category","design-code-status","listed-building-grade","park-and-garden-grade"] %}
<a class ="govuk-link" href="{{ '/prefix/' + field + "/reference/" + value }}">{{ value }}</a>
{%- elif field in ["local-authority-district","local-planning-authority","parish"] %}
<a class ="govuk-link" href="{{ '/prefix/statistical-geography/reference/' + value }}">{{ value }}</a>
{%- elif field in ["combined-authority","local-authority"] %}
<a class ="govuk-link" href="{{ '/prefix/local-authority/reference/' + value }}">{{ value }}</a>
{%- elif field in ["organisation-entity"] %}
Expand Down

0 comments on commit 983571a

Please sign in to comment.