Skip to content

Commit df6e0d7

Browse files
authored
Merge pull request #1112 from alphagov/2085-internal-links
2085: Add internal links to top and bottom of summary pages
2 parents e3cad27 + 80bf108 commit df6e0d7

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

accessibility_monitoring_platform/apps/audits/templates/audits/helpers/test_summary.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ <h2 id="page-{{ page.id }}" class="govuk-heading-m govuk-!-font-size-19 govuk-!-
217217
</table>
218218
</div>
219219
</div>
220+
{% include 'common/top_and_bottom.html' %}
220221
{% endfor %}
221222
{% else %}
222223
{% for wcag_definition, failures in audit_failures_by_wcag.items %}
@@ -284,6 +285,7 @@ <h2 id="wcag-{{ wcag_definition.id }}" class="govuk-heading-m govuk-body govuk-!
284285
</table>
285286
</div>
286287
</div>
288+
{% include 'common/top_and_bottom.html' %}
287289
{% endfor %}
288290
{% if pages_with_retest_notes %}
289291
<h2 id="additional-page-issues" class="govuk-heading-m govuk-!-font-size-19 govuk-!-font-weight-bold">Additional issues found on page ({{ pages_with_retest_notes|length }})</h2>
@@ -334,6 +336,7 @@ <h2 id="additional-page-issues" class="govuk-heading-m govuk-!-font-size-19 govu
334336
{% endfor %}
335337
</tbody>
336338
</table>
339+
{% include 'common/top_and_bottom.html' %}
337340
{% endif %}
338341
{% endif %}
339342
{% endif %}
@@ -345,5 +348,8 @@ <h2 id="additional-page-issues" class="govuk-heading-m govuk-!-font-size-19 govu
345348
{% else %}
346349
{% include 'audits/helpers/test_summary_initial_statement_content.html' %}
347350
{% endif %}
351+
{% include 'common/top_and_bottom.html' %}
348352
{% endfor %}
349353
{% endif %}
354+
355+
<hr id="bottom-of-page" class="amp-width-100 amp-margin-bottom-30">
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="govuk-grid-row amp-margin-bottom-20 amp-margin-top-20">
2+
<div class="govuk-grid-column-full govuk-button-group">
3+
▼ &nbsp; <a href="#bottom-of-page" class="govuk-link govuk-link--no-visited-state">Go to bottom of page</a>
4+
▲ &nbsp; {% include 'common/back_to_top.html' %}
5+
</div>
6+
</div>

0 commit comments

Comments
 (0)