From 1f3d202a0d9effe17dd9f967d8d9978b473865d1 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Tue, 10 Dec 2024 12:21:01 -0800 Subject: [PATCH] refactor a bit --- app/templates/views/send-test.html | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/templates/views/send-test.html b/app/templates/views/send-test.html index 20661b928..720849ae6 100644 --- a/app/templates/views/send-test.html +++ b/app/templates/views/send-test.html @@ -14,18 +14,14 @@ {% block skipLink %} + {% set skipLink = usaSkipLink({ + "href": '#main-content', + "text": 'Skip to main content' + }) %} {% if errors %} -
- {{ usaSkipLink({ - "href": '#main-content', - "text": 'Skip to main content' - }) }} -
+
{{ skipLink }}
{% else %} - {{ usaSkipLink({ - "href": '#main-content', - "text": 'Skip to main content' - }) }} + {{ skipLink }} {% endif %} {% endblock %}