From b66a61addb6c8e66cb26fcf74b532d68891267e4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 23 May 2018 22:23:28 +0200 Subject: Refactored code, many fixes and improvements in chat backend+frontend --- .../admin/templates/pages/dashboard.html.twig | 414 +++++++++++---------- 1 file changed, 208 insertions(+), 206 deletions(-) (limited to 'main/app/sprinkles/admin/templates/pages/dashboard.html.twig') diff --git a/main/app/sprinkles/admin/templates/pages/dashboard.html.twig b/main/app/sprinkles/admin/templates/pages/dashboard.html.twig index f9c85a3..461e13d 100644 --- a/main/app/sprinkles/admin/templates/pages/dashboard.html.twig +++ b/main/app/sprinkles/admin/templates/pages/dashboard.html.twig @@ -7,255 +7,257 @@ {% block body_matter %} {% if checkAccess('uri_users') %} -
-
- -
- -
- {{ translate("USER", 2) }} - {{counter.users}} -
- +
- + -
- - - + - - + {% elseif checkAccess('uri_group', { 'group': current_user.group }) %} -
-
-
- -
-

{{current_user.group.name}}

+
+
+
+ +
+

{{ current_user.group.name }}

+
+ +
+
- -
- -
- -
-
- -
- {{ translate("USER", 2) }} - {{current_user.group.users.count}} + +
+
+ +
+ {{ translate("USER", 2) }} + {{ current_user.group.users.count }} +
+ +
+
- -
- +
- -
- + {% endif %}
{% if checkAccess('uri_users') or checkAccess('view_system_info') %} -
- {% if checkAccess('uri_users') %} -
-
- -
-
-

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

-
- -
- - -
- - - -
- - {% endif %} + + {% endif %} - {% if checkAccess('view_system_info') %} -
-
-
-
-

{{translate("SYSTEM_INFO")}}

-
- -
-
-
{{translate("SYSTEM_INFO.UF_VERSION")}}
-
{{info.version.UF}}
+ {% if checkAccess('view_system_info') %} +
+
+
+
+

{{ translate("SYSTEM_INFO") }}

+
+ +
+
+
{{ translate("SYSTEM_INFO.UF_VERSION") }}
+
{{ info.version.UF }}
-
{{translate("SYSTEM_INFO.PHP_VERSION")}}
-
{{info.version.php}}
+
{{ translate("SYSTEM_INFO.PHP_VERSION") }}
+
{{ info.version.php }}
-
{{translate("SYSTEM_INFO.SERVER")}}
-
{{info.environment.SERVER_SOFTWARE}}
+
{{ translate("SYSTEM_INFO.SERVER") }}
+
{{ info.environment.SERVER_SOFTWARE }}
-
{{translate("SYSTEM_INFO.DB_VERSION")}}
-
{{info.version.database.type}} {{info.version.database.version}}
+
{{ translate("SYSTEM_INFO.DB_VERSION") }}
+
{{ info.version.database.type }} {{ info.version.database.version }}
-
{{translate("SYSTEM_INFO.DB_NAME")}}
-
{{info.database.name}}
+
{{ translate("SYSTEM_INFO.DB_NAME") }}
+
{{ info.database.name }}
-
{{translate("SYSTEM_INFO.DIRECTORY")}}
-
{{info.path.project}}
+
{{ translate("SYSTEM_INFO.DIRECTORY") }}
+
{{ info.path.project }}
-
{{translate("SYSTEM_INFO.URL")}}
-
{{site.uri.public}}
+
{{ translate("SYSTEM_INFO.URL") }}
+
{{ site.uri.public }}
-
{{translate("SYSTEM_INFO.SPRINKLES")}}
-
-
    - {% for sprinkle in sprinkles %} -
  • - {{sprinkle}} -
  • - {% endfor %} -
-
-
+
{{ translate("SYSTEM_INFO.SPRINKLES") }}
+
+
    + {% for sprinkle in sprinkles %} +
  • + {{ sprinkle }} +
  • + {% endfor %} +
+
+
+
+ + + +
+
- - - +
- -
- + + {% endif %}
- - {% endif %} -
- + {% endif %} {% if checkAccess('uri_activities') %} -
-
-
-

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

- {% include "tables/table-tool-menu.html.twig" %} -
-
- {% include "tables/activities.html.twig" with { +
+
+
+

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

+ {% include "tables/table-tool-menu.html.twig" %} +
+
+ {% include "tables/activities.html.twig" with { "table" : { "id" : "table-activities", "columns" : ["user"] } - } - %} + } %} +
-
{% elseif checkAccess('view_group_field', { 'group': current_user.group, 'property': 'users' }) %} -
-
-
-

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

- {% include "tables/table-tool-menu.html.twig" %} -
-
- {% include "tables/users.html.twig" with { +
+
+
+

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

+ {% include "tables/table-tool-menu.html.twig" %} +
+
+ {% include "tables/users.html.twig" with { "table" : { "id" : "table-group-users" } - } - %} -
- +
-
{% else %} -
-
- -
-

- {{translate("WELCOME", { - 'first_name': current_user.first_name - })}} -

-
-
- User Avatar -
- - +
+ {% endif %}
@@ -264,16 +266,16 @@ {% block scripts_page %} -- cgit v1.2.3