Opti (min) for twig
This commit is contained in:
parent
11988e3735
commit
69fdaf8d2f
|
@ -1,5 +1,12 @@
|
|||
<input type='text' class='searchbar' placeholder='Recherche'>
|
||||
|
||||
|
||||
|
||||
{% for entry in f_history() %}
|
||||
|
||||
|
||||
{% if loop.index == 1 %}
|
||||
|
||||
<article class='inline-row' style='border: 0; box-shadow: none;background: transparent;'>
|
||||
<span>Machine</span>
|
||||
<span>Dernière utilisation</span>
|
||||
|
@ -8,11 +15,11 @@
|
|||
<span>Historique détaillé</span>
|
||||
</article>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% for entry in f_history() %}
|
||||
<article class='inline-row' data-history='{{ entry.id_history }}'>
|
||||
|
||||
<span class='title'><span>#{{ entry.machine_name }}</span></span>
|
||||
<span data-machine='{{ entry.id_machine }}' class='title'><span>#{{ entry.machine_name }}</span></span>
|
||||
|
||||
<span>
|
||||
<span>{{ entry.timestamp | f_tsformat }}</span>
|
||||
|
@ -20,7 +27,7 @@
|
|||
</span>
|
||||
|
||||
|
||||
<span>
|
||||
<span data-user='{{ entry.id_user }}'>
|
||||
<span>{{ entry.user_name }}</span>
|
||||
<span style='color:#aaa;'>{{ entry.user_firstname }} {{ entry.user_lastname }}</span>
|
||||
</span>
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
{% for cluster in f_clusters() %}
|
||||
<article class='inline-box' id='{{ cluster.id_machine_cluster }}'>
|
||||
|
||||
{% set machinelist = f_machines(cluster.id_machine_cluster) %}
|
||||
|
||||
<span class='title' style='color: {{ p_theme }}'>{{ cluster.name }}</span>
|
||||
<span class='link_remove' data-cluster='{{ cluster.id_machine_cluster }}'>{{ p_icon.remove | raw }}</span>
|
||||
|
||||
|
@ -10,13 +12,13 @@
|
|||
|
||||
<span class='code'>
|
||||
{{ p_icon.device | raw }}
|
||||
<span>{{ f_machines(cluster.id_machine_cluster) | length }} machines</span>
|
||||
<span>{{ machinelist | length }} machines</span>
|
||||
</span>
|
||||
|
||||
<span class='groups'>
|
||||
{{ p_icon.group | raw }}
|
||||
|
||||
{% for machine in f_machines(cluster.id_machine_cluster) %}
|
||||
{% for machine in machinelist %}
|
||||
<span>
|
||||
{{ machine.name }}
|
||||
<span class='rem-member' data-member='{{ machine.id_machine }}' data-cluster='{{ cluster.id_machine_cluster }}'></span>
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
{% for cluster in f_clusters() %}
|
||||
<article class='inline-box' id='{{ cluster.id_user_cluster }}'>
|
||||
|
||||
{% set userlist = f_users(cluster.id_user_cluster) %}
|
||||
|
||||
|
||||
<span class='title' style='color: {{ p_theme }}'>{{ cluster.name }}</span>
|
||||
<span class='link_remove' data-cluster='{{ cluster.id_user_cluster }}'>{{ p_icon.remove | raw }}</span>
|
||||
|
||||
|
@ -10,13 +13,13 @@
|
|||
|
||||
<span class='code'>
|
||||
{{ p_icon.type | raw }}
|
||||
<span>{{ f_users(cluster.id_user_cluster) | length }} utilisateurs</span>
|
||||
<span>{{ userlist | length }} utilisateurs</span>
|
||||
</span>
|
||||
|
||||
<span class='groups'>
|
||||
{{ p_icon.group | raw }}
|
||||
|
||||
{% for user in f_users(cluster.id_user_cluster) %}
|
||||
{% for user in userlist %}
|
||||
|
||||
<span>
|
||||
{{ user.username }}
|
||||
|
|
Loading…
Reference in New Issue