{# A host's newest timeline entries, loaded into its page: what happened to it lately, with the whole of it a click away. #} {% from "_macros.html" import empty_state %} {% from "timeline/_entry.html" import entry_what %}

History

{%- if session.user_role in ('operator', 'admin') %}Record a change ยท {% endif -%} All of {{ host.name }}'s history
{% if items %} {% for item in items %} {% endfor %}
{{ item.entry.at|when }} {{ entry_what(item, '/hosts/' ~ host.id) }} {{ item.entry.actor }}
{% else %} {{ empty_state("Nothing has happened to " ~ host.name ~ " that the timeline records yet.") }} {% endif %}