{% 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 %}
{# ── Info card ── #}
| 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 ── #}
| 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 %}
|
{{ entry.created_at.strftime('%d.%m.%Y %H:%M') }}
|
{{ entry.message }} |
{% endfor %}
{% else %}
No log entries yet.
{% endif %}
{# ── Add log entry modal ── #}
{% endblock %}