diff --git a/templates/pages/dashboard.html.twig b/templates/pages/dashboard.html.twig
index dabd7e2..2db8e31 100644
--- a/templates/pages/dashboard.html.twig
+++ b/templates/pages/dashboard.html.twig
@@ -84,12 +84,60 @@
{% endblock %}
+
+{% block latest_organisations %}
+ {% if (hasRole('site-admin') or hasRole('organisations-admin')) %}
+
{% if
checkAccess('uri_users') or
- checkAccess('view_system_info') or
- checkAccess('uri_activities') or
checkAccess('view_group_field', {
'group': current_user.group,
'property': 'users'
@@ -97,115 +145,67 @@
hasRole('site-admin') or
hasRole('organisations-admin')
%}
+ {% set empty_dashboard = false %}
+
{% block left_panels %}
- {% if checkAccess('uri_users') or checkAccess('view_system_info') or (hasRole('site-admin') or hasRole('organisations-admin')) %}
-
- {% block latest_users %}{{ parent() }}{% endblock %}
+
+ {{ block("latest_users") }}
- {% block latest_organisations %}
- {% if (hasRole('site-admin') or hasRole('organisations-admin')) and checkAccess('uri_activities') %}
-
-
-
-
-
-
-
- {% for organisation in organisations %}
-
-
-
- {% endfor %}
-
-
-
-
-
-
-
-
-
-
-
- {% endif %}
- {% endblock %}
-
- {% block system_info %}{{ parent() }}{% endblock %}
-
-
- {% endif %}
+ {{ block("group_users_summary") }}
+
+
{% endblock %}
{% block right_panels %}
- {% block activities_summary %}{{ parent() }}{% endblock %}
-
- {% block organisations_summary %}
- {% if ((hasRole('site-admin') or hasRole('organisations-admin'))) and not checkAccess('uri_activities') %}
-
-
-
-
-
-
- {% for organisation in organisations %}
-
-
-
- {% endfor %}
-
-
-
-
-
-
-
-
- {% endif %}
- {% endblock %}
-
- {% block group_users_summary %}{{ parent() }}{% endblock %}
+
+ {{ block("latest_organisations") }}
+
{% endblock %}
- {% else %}
- {% block user_welcome %}{{ parent() }}{% endblock %}
- {% endif %}
+ {% endif %}
+
+ {% if checkAccess('uri_activities') %}
+ {% set empty_dashboard = false %}
+
+ {% if checkAccess('uri_activities') %}
+
+ {% endif %}
+
+
+ {% endif %}
+
+ {% if
+ checkAccess('view_system_info') or
+ hasRole('site-admin')
+ %}
+ {% set empty_dashboard = false %}
+
+
+ {{ block("system_info") }}
+
+
+
+
+ {% endif %}
+
+ {% if empty_dashboard == true %}
+ {{ block("user_welcome") }}
+ {% endif %}
{% endblock %}