diff --git a/build/viewer/view/history/view.twig b/build/viewer/view/history/view.twig
index 7c9c72d..195d6c0 100644
--- a/build/viewer/view/history/view.twig
+++ b/build/viewer/view/history/view.twig
@@ -1,18 +1,25 @@
-
- Machine
- Dernière utilisation
- Utilisateur
- Action
- Historique détaillé
-
{% for entry in f_history() %}
+
+
+ {% if loop.index == 1 %}
+
+
+ Machine
+ Dernière utilisation
+ Utilisateur
+ Action
+ Historique détaillé
+
+
+ {% endif %}
+
- #{{ entry.machine_name }}
+ #{{ entry.machine_name }}
{{ entry.timestamp | f_tsformat }}
@@ -20,7 +27,7 @@
-
+
{{ entry.user_name }}
{{ entry.user_firstname }} {{ entry.user_lastname }}
diff --git a/build/viewer/view/machine/groups.twig b/build/viewer/view/machine/groups.twig
index 928bafc..c93ac6c 100644
--- a/build/viewer/view/machine/groups.twig
+++ b/build/viewer/view/machine/groups.twig
@@ -3,6 +3,8 @@
{% for cluster in f_clusters() %}
+ {% set machinelist = f_machines(cluster.id_machine_cluster) %}
+
{{ cluster.name }}
{{ p_icon.remove | raw }}
@@ -10,13 +12,13 @@
{{ p_icon.device | raw }}
- {{ f_machines(cluster.id_machine_cluster) | length }} machines
+ {{ machinelist | length }} machines
{{ p_icon.group | raw }}
- {% for machine in f_machines(cluster.id_machine_cluster) %}
+ {% for machine in machinelist %}
{{ machine.name }}
diff --git a/build/viewer/view/user/groups.twig b/build/viewer/view/user/groups.twig
index c2424f8..58be65a 100644
--- a/build/viewer/view/user/groups.twig
+++ b/build/viewer/view/user/groups.twig
@@ -2,6 +2,9 @@
{% for cluster in f_clusters() %}
+
+ {% set userlist = f_users(cluster.id_user_cluster) %}
+
{{ cluster.name }}
{{ p_icon.remove | raw }}
@@ -10,13 +13,13 @@
{{ p_icon.type | raw }}
- {{ f_users(cluster.id_user_cluster) | length }} utilisateurs
+ {{ userlist | length }} utilisateurs
{{ p_icon.group | raw }}
- {% for user in f_users(cluster.id_user_cluster) %}
+ {% for user in userlist %}
{{ user.username }}