{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Active Allocations - Pychestrate Resources{% endblock %} {% block content %}
Clear
{{ ui.icon("history") }} View History
{% if resource_total > resources | length %}

Resource filter shows the first {{ resources | length }} of {{ resource_total }} resources.

{% endif %}
{% for alloc in allocations %} {% else %} {% if filters_active %} {% else %} {{ ui.empty_state("No active allocations", colspan=8) }} {% endif %} {% endfor %}
ID Resource User Job ID Mode Check Out Time Expected Check In Actions
{{ 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 %} {{ alloc.checkout_time | local_datetime(false, '—') }} {{ alloc.expected_checkin | local_datetime(false, '—') }} {% if alloc.user_id == current_user_id %}
{% elif can_manage %}
{% endif %}
No active allocations match the current filters. Clear filters
{{ ui.pagination('resources.allocation_list', page, total_pages, {'per_page': per_page, 'resource_id': selected_resource_id, 'user_id': selected_user_id, 'job_id': (selected_job_id or none)}, total=total) }} {% include "site_shell/_local_times.html" %} {% endblock %}