{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Allocation History - Pychestrate Resources{% endblock %} {% block content %}
Historical record of resource allocations
Resource filter shows the first {{ resources | length }} of {{ resource_total }} resources.
{% endif %}| ID | Resource | User | Job ID | Mode | Status | Check Out | Check In | Duration |
|---|---|---|---|---|---|---|---|---|
| {{ alloc.id }} | {{ alloc.resource_name }} | {{ alloc.username or '—' }}{% if alloc.reason %} {{ alloc.reason }} {% endif %} |
{{ alloc.job_id or '—' }} | {% set mode = alloc.mode %} {% if mode == 'exclusive' %} Exclusive {% else %} Shared {% endif %} |
{% set status = alloc.status %}
{% if status == 'active' %}
Active
{% elif status == 'released' %}
Released
{% elif status == 'expired' %}
Expired
{% elif status == 'forced' %}
Forced
{% if alloc.forced_by %} by {{ alloc.forced_by }}{% if alloc.force_reason %}: {{ alloc.force_reason }}{% endif %} {% endif %}
{% else %}
{{ status }}
{% endif %}
|
{{ alloc.checkout_time | local_datetime(false, '—') }} | {{ alloc.actual_checkin | local_datetime(false, '—') }} | {% if alloc.duration_minutes is not none %}{{ alloc.duration_minutes }} min{% else %}-{% endif %} |
| No allocation history matches the current filters. Clear filters | ||||||||