diff --git a/swh/web/ui/templates/layout.html b/swh/web/ui/templates/layout.html
index 0bdf1a9b..5eb89f24 100644
--- a/swh/web/ui/templates/layout.html
+++ b/swh/web/ui/templates/layout.html
@@ -1,78 +1,80 @@
{% block title %}{% endblock %} - The Software Heritage Archive
-
{{ self.title() }}
+
+
{{ self.title() }}
+
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}