{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Allocation {{ allocation.id }} - Pychestrate Resources{% endblock %} {% block content %}

Allocation Information

{% if allocation.forced_by or allocation.force_reason %} {% endif %}
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 %}
{% if allocation.metadata %}

Resource Metadata (at check out)

{{ allocation.metadata | tojson(indent=2) }}
{% endif %}
{% set status = allocation.status %} {% if status == 'active' and (allocation.user_id == current_user_id or can_manage) %}

Actions

{% if allocation.user_id == current_user_id %}
{% elif can_manage %}
{% endif %}
{% endif %}
{% include "site_shell/_local_times.html" %} {% endblock %}