diff options
Diffstat (limited to 'webmentions_ssg/templates/includes')
| -rw-r--r-- | webmentions_ssg/templates/includes/failure_guidance.html (renamed from webmentions_ssg/templates/includes/received_failure.html) | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/webmentions_ssg/templates/includes/received_failure.html b/webmentions_ssg/templates/includes/failure_guidance.html index 65ed7a3..9a36d89 100644 --- a/webmentions_ssg/templates/includes/received_failure.html +++ b/webmentions_ssg/templates/includes/failure_guidance.html @@ -4,8 +4,12 @@ SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me> SPDX-License-Identifier: BSD-3-Clause --> -{% macro render_failure(reason) %} - {% set guidance = reason | received_failure_guidance %} +{% macro render_failure(reason, direction="received") %} + {% if direction == "sent" %} + {% set guidance = reason | sent_failure_guidance %} + {% else %} + {% set guidance = reason | received_failure_guidance %} + {% endif %} {% if guidance %} <div class="text-break">{{ guidance.explanation }}</div> {% if guidance.next_step %} @@ -17,6 +21,6 @@ SPDX-License-Identifier: BSD-3-Clause </details> {% else %} <div class="text-break text-pre-formatted">{{ reason }}</div> - <div class="small text-body-secondary mt-1">Check the application logs for details before reverifying.</div> + <div class="small text-body-secondary mt-1">Check the application logs for details before {{ 'resending' if direction == 'sent' else 'reverifying' }}.</div> {% endif %} {% endmacro %} |
