SMMP/build/viewer/view/history/view.twig

45 lines
1.1 KiB
Twig
Raw Permalink Normal View History

<input type='text' class='searchbar' placeholder='Recherche'>
{% for entry in f_history() %}
2017-01-12 05:50:14 +00:00
{% if loop.index == 1 %}
<article class='inline-row' style='border: 0; box-shadow: none;background: transparent;'>
<span>Machine</span>
<span>Dernière utilisation</span>
<span>Utilisateur</span>
<span>Action</span>
<span>Historique détaillé</span>
</article>
{% endif %}
2017-07-29 16:56:12 +00:00
<article class='inline-row' id='{{ entry.id_history }}'>
2017-01-12 05:50:14 +00:00
<span data-machine='{{ entry.id_machine }}' class='title'><span>#{{ entry.machine_name }}</span></span>
<span>
<span>{{ entry.timestamp | f_tsformat }}</span>
<span style='color:#aaa;'>Il y a {{ entry.timestamp | f_tsrelative }}</span>
</span>
2017-01-12 05:50:14 +00:00
<span data-user='{{ entry.id_user }}'>
<span>{{ entry.user_name }}</span>
<span style='color:#aaa;'>{{ entry.user_firstname }} {{ entry.user_lastname }}</span>
</span>
2017-07-29 16:56:12 +00:00
<span>
<span>{{ entry.action_name }}</span>
</span>
<span>
2017-07-29 16:56:12 +00:00
<button class='search' data-details='{{ entry.id_history }}'>Détails</button>
</span>
</article>
{% endfor %}