From 20b4556bc5005bacf1ed414bf98e897a2e840667 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 12 Jan 2017 06:50:14 +0100 Subject: [PATCH] Manage layout for no result -> must refactor layout for when it has a few results only --- build/viewer/view/history/view.twig | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) 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 }}