diff --git a/swh/web/ui/templates/layout.html b/swh/web/ui/templates/layout.html
index 32aedba99..77e392304 100644
--- a/swh/web/ui/templates/layout.html
+++ b/swh/web/ui/templates/layout.html
@@ -1,32 +1,32 @@
{% block title %}{% endblock %} - The Software Heritage Archive
{{ self.title() }}
-
+
+
{% for message in get_flashed_messages() %}
-
{{ message }}
+
{{ message }}
{% endfor %}
-
-
+
+
{% block content %}{% endblock %}
-