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