Skip to content

Commit

Permalink
Consistentify <p> usage in error messages
Browse files Browse the repository at this point in the history
An error message is now wrapped in <p> tags if there are multiple
paragraphs, not otherwise. This was done inconsistently before. It
does not impact the display of said messages.
  • Loading branch information
thijskh committed Oct 16, 2023
1 parent 9681f38 commit b444b40
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{% block title %}{{ parent() }}{% endblock %}
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}<p>{{ 'error_metadata_entity_id_not_found_desc'|trans({'%message%': message}) }}</p>{% endblock %}
{% block errorMessage %}{{ 'error_metadata_entity_id_not_found_desc'|trans({'%message%': message}) }}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}
<p>
{% if withIdpName and withSpName %}
{{ 'error_missing_required_fields_desc'|trans({'%idpName%': feedbackInfoMap['identityProviderName'], '%spName%': feedbackInfoMap['serviceProviderName']}) }}
{% elseif withIdpName %}
Expand All @@ -15,6 +16,7 @@
{% else %}
{{ 'error_missing_required_fields_desc_no_name'|trans }}
{% endif %}
</p>

<p>
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{% block title %}{{ parent() }}{% endblock %}
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}<p>{{ message }}.</p>{% endblock %}
{% block errorMessage %}{{ message }}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block content %}
<div class="mod-form">
<h1>{{ 'send_confirm'|trans }}</h1>
{{ 'send_confirm_desc'|trans }}
<p>{{ 'send_confirm_desc'|trans }}</p>

<div class="close-modal-container">
<button type="button" class="c-button close-modal">{{ 'close'|trans }}</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{% block title %}{{ parent() }} - {{ pageTitle }} {% endblock %}
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}<p>{{ 'error_metadata_entity_id_not_found_desc'|trans({'%message%': message}) }}</p>{% endblock %}
{% block errorMessage %}{{ 'error_metadata_entity_id_not_found_desc'|trans({'%message%': message}) }}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}
<p>
{% if withIdpName and withSpName %}
{{ 'error_missing_required_fields_desc'|trans({'%idpName%': feedbackInfoMap['identityProviderName'], '%spName%': feedbackInfoMap['serviceProviderName']}) }}
{% elseif withIdpName %}
Expand All @@ -15,6 +16,7 @@
{% else %}
{{ 'error_missing_required_fields_desc_no_name'|trans }}
{% endif %}
</p>

<p>
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{% block title %}{{ parent() }} - {{ pageTitle }} {% endblock %}
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}<p>{{ message }}.</p>{% endblock %}
{% block errorMessage %}{{ message }}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{% block title %}{{ parent() }} - {{ pageTitle }} {% endblock %}
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}<p>{{ 'error_received_error_status_code_desc'|trans }}</p>{% endblock %}
{% block errorMessage %}{{ 'error_received_error_status_code_desc'|trans }}{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{% block title %}{{ parent() }} - {{ pageTitle }} {% endblock %}
{% block pageHeading %}{{ pageTitle }}{% endblock %}

{% block errorMessage %}<p>{{ 'error_unknown_requesterid_in_authnrequest'|trans }}</p>{% endblock %}
{% block errorMessage %}{{ 'error_unknown_requesterid_in_authnrequest'|trans }}{% endblock %}

0 comments on commit b444b40

Please sign in to comment.