{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Utilization - Pychestrate Resources{% endblock %} {% block content %}
{{ ui.icon("download") }} Download CSV
{{ utilization.allocations }}
Allocations
{{ utilization.resources_used }} of {{ utilization.resources_total }}
Resources used
{{ '%.1f' | format(utilization.hours_in_use) }} h
Time in use
{{ '%.1f' | format(utilization.average_hours) }} h
Average allocation
{{ utilization.peak_at_once }}
Most held at once
{% for note in truncation_notes %}

{{ note }}

{% endfor %} {% if utilization.resources_total > 0 and utilization.allocations == 0 %}

No resource was checked out in the last {{ period_days }} days: every one was idle.

{% endif %}
{% for row in utilization.rows %} {% else %} {{ ui.empty_state("No resources registered yet", hint="Register a device and its use will be reported here.", colspan=6) }} {% endfor %}
Resource Pool Allocations Time in use Share of period Last checked out
{{ row.name }}{% if row.in_use_now %} in use now{% endif %} {{ row.pool or '—' }} {{ row.allocations }} {{ '%.1f' | format(row.hours_in_use) }} h {{ '%.0f' | format(row.percent_in_use) }}% {{ row.last_checked_out | local_datetime(false, '—') }}
{% include "site_shell/_local_times.html" %} {% endblock %}