{% extends "resources/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Resource Pool - {{ pool.name }} - Pychestrate Resources{% endblock %} {% block content %}

Pool Information

ID {{ pool.id }}
Name {{ pool.name }} {% if pool.is_default %} Default {% endif %}
Description {{ pool.description or '—' }}
Resource Count {{ pool.resource_count }}
Created {{ pool.created_at | format_datetime('%Y-%m-%d %H:%M:%S', '—') }}
Created By {{ pool.created_by_name or ('a user who no longer exists' if pool.created_by else '-') }}

Resources in Pool

{% if resources %} {% if resource_total > resources | length %}

Showing {{ resources | length }} of {{ resource_total }} resources

{% endif %}
{% for resource in resources %} {% endfor %}
Name Type Health Capacity
{{ resource.name }} {{ resource.resource_type }} {% set status = resource.health_status %} {% if status == 'online' %} Online {% elif status == 'offline' %} Offline {% elif status == 'degraded' %} Degraded {% elif status == 'maintenance' %} Maintenance {% else %} {{ status | capitalize }} {% endif %} {{ resource.current_allocations }}/{{ resource.capacity }}
{{ ui.pagination('resources.pool_detail', page, total_pages, {'pool_id': pool.id, 'per_page': per_page}, total=resource_total) }} {% else %}

No resources in this pool

{% endif %}
{% if can_manage and addable_resources %}

Add existing resources

Hold Ctrl or Cmd to choose several. A resource keeps its history and its allocations; one whose name is already in this pool stays where it is.

{% endif %} {% if can_manage and resource_total > 0 and other_pools %}

Move resources out

Empty this pool without deleting its devices, so it can be deleted.

{% endif %} {% if can_manage %}

Actions

{{ ui.icon("add") }} Add Resource {% if not pool.is_default %}
{% endif %}
{% endif %}
{% endblock %}