Skip to content

Commit 757cdf9

Browse files
authored
Merge pull request #266 from digital-land/more-item-links
More item links
2 parents b2e569f + 1736860 commit 757cdf9

File tree

1 file changed

+2
-2
lines changed
  • application/templates/components/entity-value

1 file changed

+2
-2
lines changed

application/templates/components/entity-value/macro.jinja

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<code class="app-code-block" tabindex="0">{{ value }}</code>
5555
{%- 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"] %}
5656
<a class ="govuk-link" href="{{ '/prefix/' + field + "/reference/" + value }}">{{ value }}</a>
57-
{%- elif field in ["local-authority-district","local-planning-authority","parish"] %}
57+
{%- elif field in ["local-authority-district","local-planning-authority","parish","region"] %}
5858
<a class ="govuk-link" href="{{ '/prefix/statistical-geography/reference/' + value }}">{{ value }}</a>
5959
{%- elif field in ["combined-authority","local-authority"] %}
6060
<a class ="govuk-link" href="{{ '/prefix/local-authority/reference/' + value }}">{{ value }}</a>
@@ -82,7 +82,7 @@
8282
{%- endif %}
8383
{%- elif field == "twitter" %}
8484
<a class ="govuk-link" href="https://twitter.com/{{ value }}">@{{ value }}</a>
85-
{%- elif field in ["website","opendatacommunities","documentation-url","document-url","site-plan-url"] %}
85+
{%- elif field in ["website","opendatacommunities"] or field.endswith("-url") or field.endswith("-uri") %}
8686
<a class ="govuk-link" href="{{ value }}">{{ value }}</a>
8787
{%- elif field in ["wikipedia"] %}
8888
<a class ="govuk-link" href="{{ 'https://en.wikipedia.org/wiki/' + value }}">{{ value }}</a>

0 commit comments

Comments
 (0)