{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Allocation {{ allocation.id }} - Pychestrate Resources{% endblock %} {% block content %}
Allocation details for {{ allocation.resource_name }}
| ID | {{ allocation.id }} |
|---|---|
| Resource | {{ allocation.resource_name }} |
| Resource Type | {{ allocation.resource_type }} |
| User | {{ allocation.username or '—' }} |
| Job ID | {{ allocation.job_id or '—' }} |
| Reason | {{ allocation.reason or '—' }} |
| Mode | {% set mode = allocation.mode %} {% if mode == 'exclusive' %} Exclusive {% else %} Shared {% endif %} |
| Status | {% set status = allocation.status %} {% if status == 'active' %} Active {% elif status == 'released' %} Released {% elif status == 'expired' %} Expired {% elif status == 'forced' %} Forced {% else %} {{ status }} {% endif %} |
| Forced by | {{ allocation.forced_by or '—' }} |
| Reason given | {{ allocation.force_reason or '—' }} |
| Check Out Time | {{ allocation.checkout_time | local_datetime(true, '—') }} |
| Expected Check In | {{ allocation.expected_checkin | local_datetime(true, '—') }} |
| Actual Check In | {{ allocation.actual_checkin | local_datetime(true, '—') }} |
| Duration | {% if allocation.duration_minutes is not none %}{{ allocation.duration_minutes }} minutes{% else %}-{% endif %} |
{{ allocation.metadata | tojson(indent=2) }}