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')) %} +
+
+ +
+
+

{{translate("ORGANISATION.LATEST")}}

+
+ + + + + +
+ +
+ +
+ + {% endif %} +{% endblock %} + + + +{% set empty_dashboard = true %} {% block main_panels %} -
{% 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') %} -
-
- -
-
-

{{translate("ORGANISATION.LATEST")}}

-
- - - - - -
- -
- -
- - {% 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') %} -
- -
-
-

{{translate("ORGANISATION.LATEST")}}

-
- - - - - -
- -
- {% 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') %} +
+
+
+

{{translate('ACTIVITY', 2)}}

+ {% include "tables/table-tool-menu.html.twig" %} +
+
+ {% include "tables/activities.html.twig" with { + "table" : { + "id" : "table-activities", + "columns" : ["user"] + } + } + %} +
+
+
+ {% 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 %}