diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html
index ac8a0e703f..5060ab8dfd 100644
--- a/apps/main/templates/base.html
+++ b/apps/main/templates/base.html
@@ -247,7 +247,18 @@
{% endwith %}
- {% endif %}
+ {% endif %}
+ {% get_object_navigation_links "related" as object_navigation_links %}
+ {% if object_navigation_links %}
+
+
{% trans "Related actions" %}
+
+ {% with "true" as as_li %}
+ {% include "generic_navigation.html" %}
+ {% endwith %}
+
+
+ {% endif %}
{% endfor %}
{% else %}
{% get_object_navigation_links as object_navigation_links %}
@@ -269,18 +280,19 @@
{% endif %}
+ {% get_object_navigation_links "related" as object_navigation_links %}
+ {% if object_navigation_links %}
+
+
{% trans "Related actions" %}
+
+ {% with "true" as as_li %}
+ {% include "generic_navigation.html" %}
+ {% endwith %}
+
+
+ {% endif %}
{% endif %}
- {% get_object_navigation_links "related" as object_navigation_links %}
- {% if object_navigation_links %}
-
-
{% trans "Related actions" %}
-
- {% with "true" as as_li %}
- {% include "generic_navigation.html" %}
- {% endwith %}
-
-
- {% endif %}
+
{% get_object_navigation_links "sidebar" as object_navigation_links %}
{% if object_navigation_links %}
@@ -291,7 +303,7 @@
{% endwith %}
- {% endif %}
+ {% endif %}
{% get_sidebar_templates as sidebar_templates %}
{% for template in sidebar_templates %}