diff --git a/snikket_web/invite.py b/snikket_web/invite.py index 6462e2c..19a4314 100644 --- a/snikket_web/invite.py +++ b/snikket_web/invite.py @@ -148,15 +148,15 @@ async def register(id_: str) -> typing.Union[str, quart.Response]: except aiohttp.ClientResponseError as exc: if exc.status == 409: form.localpart.errors.append( - _l("That username is already taken") + _l("That username is already taken.") ) elif exc.status == 403: form.localpart.errors.append( - _l("Registration was declined for unknown reasons") + _l("Registration was declined for unknown reasons.") ) elif exc.status == 400: form.localpart.errors.append( - _l("The username is not valid") + _l("The username is not valid.") ) elif exc.status == 404: return redirect(url_for(".view", id_=id_)) @@ -216,7 +216,7 @@ async def reset(id_: str) -> typing.Union[str, quart.Response]: except aiohttp.ClientResponseError as exc: if exc.status == 403: form.localpart.errors.append( - _l("Registration was declined for unknown reasons") + _l("Registration was declined for unknown reasons.") ) elif exc.status == 404: return redirect(url_for(".view", id_=id_)) diff --git a/snikket_web/templates/library.j2 b/snikket_web/templates/library.j2 index 1eb2a97..d717a23 100644 --- a/snikket_web/templates/library.j2 +++ b/snikket_web/templates/library.j2 @@ -80,7 +80,7 @@
{#- -#}
{% trans %}Invalid input{% endtrans %}
{%- if error_list | length == 1 -%} -

{{ error_list[0] }}.

+

{{ error_list[0] }}

{%- else -%}