+
{% block domcontent %}{% endblock %}
{% endblock %}
diff --git a/templates/admin/domains.html b/templates/admin/domains.html
index 03ca98f72..27111c54c 100644
--- a/templates/admin/domains.html
+++ b/templates/admin/domains.html
@@ -1,13 +1,10 @@
{% extends "layout.html" %}
+{% load i18n %}
{% block html_head %}
{% endblock %}
+{% block middletitle %}{% trans "Available domains" %}{% endblock %}
{% block content %}
-{% load i18n %}
-
-
{% if not domains %}
{% trans "No domain defined." %}
diff --git a/templates/admin/mailboxes.html b/templates/admin/mailboxes.html
index 28d8c28ab..6ae705aec 100644
--- a/templates/admin/mailboxes.html
+++ b/templates/admin/mailboxes.html
@@ -7,16 +7,6 @@
{% endblock %}
{% block domcontent %}
{% load i18n %}
-{% if messages %}
-
-
- {% for msg in messages %}
- - {{ msg }}
- {% endfor %}
-
-
-{% endif %}
-
{% if not mailboxes %}
{% trans "No mailbox defined." %}
{% else %}
diff --git a/templates/admin/settings_header.html b/templates/admin/settings_header.html
index 5abaeb0b6..9748e53fd 100644
--- a/templates/admin/settings_header.html
+++ b/templates/admin/settings_header.html
@@ -1,24 +1,10 @@
{% extends "layout.html" %}
+{% load i18n %}
{% block html_head %}
{% endblock %}
+{% block middletitle %}{% trans "Settings" %}{% endblock %}
{% block content %}
-{% load i18n %}
-
-
-
-
{% block setcontent %}{% endblock %}
diff --git a/templates/layout.html b/templates/layout.html
index 5e3335a96..1cc2f4262 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -93,6 +93,17 @@
{% else %}
{% endif %}
+
+
{% block content %}{% endblock %}
diff --git a/templates/main/header.html b/templates/main/header.html
index 85b2b15bd..37d898d43 100644
--- a/templates/main/header.html
+++ b/templates/main/header.html
@@ -1,24 +1,10 @@
{% extends "layout.html" %}
+{% load i18n %}
{% block html_head %}
{% endblock %}
+{% block middletitle %}{% trans "General" %}{% endblock %}
{% block content %}
-{% load i18n %}
-
-
-
-
{% block subcontent %}{% endblock %}