{# Lifecycle subblock — uses _server_actions.html which now opens job-log-modal on click #}
{% include "_server_actions.html" %}
{# Live state — HTMX-loaded into innerHTML #}
{# Config grid — flat auto-fit; uses config_field macro from _macros.html #}
{% for h in console_history %}
{% with command=h.command, reply=h.reply, is_error=h.is_error %}
{% include "_console_line.html" %}
{% endwith %}
{% endfor %}
{% if not file_tree_root_entries %}
No files yet — start the server to mount its runtime.
{% else %}
{% set entries = file_tree_root_entries %}
{% set truncated = file_tree_truncated %}
{% set truncated_count = file_tree_truncated_count %}
{% set files_base_url = "/servers/" ~ server.id %}
{% include "_overlay_file_tree.html" %}
{% endif %}