{% extends "base.html" %} {% block title %}{{ printer.name }} — POPS{% endblock %} {% block content %}
{{ printer.name }}
{% set s = printer.status.value %} {% if s == 'printing' %}printing {% elif s == 'idle' %}idle {% elif s == 'error' %}error {% else %}offline {% endif %} {% if printer.decommissioned_at %} decommissioned {% endif %}
{# ── Currently printing ── #} {% if current_job %}
Currently printing
{{ current_job.file_name or current_job.name or '—' }}
{% if current_job.customer %}
{{ current_job.customer }}
{% endif %}
{% endif %}
{# ── Info card ── #}
Details
Type {{ printer.printer_type.name if printer.printer_type else '—' }}
Bed volume {% if printer.printer_type %}{{ printer.printer_type.bed_x_mm }}×{{ printer.printer_type.bed_y_mm }}×{{ printer.printer_type.bed_z_mm }} mm{% else %}—{% endif %}
Location {{ printer.location or '—' }}
{# ── Lifecycle card ── #}
Lifecycle
Purchased {{ printer.bought_at.strftime('%d.%m.%Y') if printer.bought_at else '—' }}
Last maintenance {{ printer.last_maintenance_at.strftime('%d.%m.%Y') if printer.last_maintenance_at else '—' }}
Decommissioned {{ printer.decommissioned_at.strftime('%d.%m.%Y') if printer.decommissioned_at else '—' }}
{# ── Log ── #}
Log
{% if printer.logs %} {% for entry in printer.logs %} {% endfor %}
{{ entry.created_at.strftime('%d.%m.%Y %H:%M') }} {{ entry.message }}
{% else %}
No log entries yet.
{% endif %}
{# ── Add log entry modal ── #} {% endblock %}