collection-crud/templates/gpu/index.html.twig

158 lines
4.0 KiB
Twig
Raw Normal View History

2022-10-07 16:04:56 -04:00
{% extends 'base.html.twig' %}
{% block title %}Gpu index{% endblock %}
{% block body %}
2022-10-07 22:00:14 -04:00
<h2>Graphics Cards</h2>
2022-10-07 16:04:56 -04:00
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('gpu_new') }}">Add a Graphics Card</a>
</li>
</ul>
</div>
2022-10-07 22:00:14 -04:00
<ul
class="tabs"
data-deep-link="true"
data-update-history="true"
data-deep-link-smudge="true"
data-deep-link-smudge-delay="500"
data-tabs
id="classifications"
>
<li class="tabs-title is-active" aria-selected="true">
<a href="#not_acquired">On the Way</a>
2022-10-07 22:00:14 -04:00
</li>
<li class="tabs-title">
<a href="#pcie">PCIe</a>
</li>
<li class="tabs-title">
<a href="#agp">AGP</a>
</li>
<li class="tabs-title">
<a href="#pci">PCI</a>
</li>
<li class="tabs-title">
<a href="#isa">ISA</a>
</li>
<li class="tabs-title" >
<a href="#acquired">All In Collection</a>
2022-10-07 22:00:14 -04:00
</li>
</ul>
<div class="tabs-content" data-tabs-content="classifications">
{% for label, gpus in gpus %}
<div class="tabs-panel {% if label == 'not_acquired' %}is-active{% endif %}" id="{{ label }}">
2022-10-07 22:00:14 -04:00
<table class="hover scroll sortable stack">
<thead>
<tr>
<th>&nbsp;</th>
<th>Id</th>
<th>Model Name</th>
<th>GPU</th>
<th>Card Brand</th>
<th>Alternate Model Name</th>
2024-03-20 15:51:36 -04:00
<th>Count</th>
<th>Key / Bus</th>
2022-10-07 22:00:14 -04:00
<th>Slot Width</th>
<th>Power</th>
<th>Tdp</th>
2024-03-20 15:51:36 -04:00
<th data-tsorter="numeric">GPU Clock</th>
2022-10-07 22:00:14 -04:00
<th>Memory</th>
2024-03-20 15:51:36 -04:00
<!-- <th>Shading Units</th>
2022-10-07 22:00:14 -04:00
<th>TMUs</th>
<th>ROPs</th>
<th>Compute Units</th>
<th>L1 cache</th>
<th>L2 cache</th>
<th>DirectX Support</th>
<th>OpenGL</th>
<th>OpenCL</th>
<th>Vulkan</th>
2024-03-20 15:51:36 -04:00
<th>Shader Model</th> -->
2022-10-07 22:00:14 -04:00
<th>Link</th>
2024-03-20 15:51:36 -04:00
2022-10-07 22:00:14 -04:00
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for gpu in gpus %}
2022-10-07 22:00:14 -04:00
<tr>
<td>
<ul>
<li>
<a href="{{ path('gpu_show', {'id': gpu.id}) }}">View 👁</a>
</li>
<li>
<a href="{{ path('gpu_edit', {'id': gpu.id}) }}">Edit <span class="edit-icon">&#9998;</span></a>
</li>
</ul>
</td>
<td>{{ gpu.id }}</td>
<td>{{ gpu.gpuBrand.name }} {{ gpu.modelName }}</td>
<td>
2022-10-13 22:26:33 -04:00
{% if gpu.gpuCore %}
{% if gpu.gpuCore.variant %}
{{ gpu.gpuCore.name }} ({{ gpu.gpuCore.variant }})
{% else %}
{{ gpu.gpuCore.name }}
{% endif %}
2022-10-07 22:00:14 -04:00
{% endif %}
</td>
<td>{% if gpu.boardBrand %}{{ gpu.boardBrand.name }}{% else %}Unknown{% endif %}</td>
<td>{{ gpu.alternateModelName }}</td>
2024-03-20 15:51:36 -04:00
<td>{{ gpu.count }}</td>
<td>{{ gpu.cardKey.value }} / {{ gpu.busInterface.value }}</td>
<td>{{ gpu.slotSpan }}</td>
2022-10-07 22:00:14 -04:00
<td>
{% if gpu.pcie6power > 0 or gpu.pcie8power > 0 %}
{% if gpu.pcie6power > 0 %}
{{ gpu.pcie6power }} PCIe 6-pin
{% endif %}
{% if gpu.pcie8power > 0 %}
{{ gpu.pcie8power }} PCIe 8-pin
{% endif %}
{% elseif gpu.molexPower > 0 %}
{{ gpu.molexPower }} Molex
{% else %}
Slot
{% endif %}
</td>
<td>{{ gpu.tdp }}</td>
<td>
{% if gpu.boostClock %}
{{ gpu.baseClock }} -> {{ gpu.boostClock }}
{% else %}
{{ gpu.baseClock }}
{% endif %}
</td>
<td>{{ gpu.memorySize }}MiB {{ gpu.memoryClock }}MHz {{ gpu.memoryBus }}bit {{ gpu.memoryType }}</td>
2024-03-20 15:51:36 -04:00
<!-- <td>{{ gpu.shadingUnits }}</td>
2022-10-07 22:00:14 -04:00
<td>{{ gpu.tmus }}</td>
<td>{{ gpu.rops }}</td>
<td>{{ gpu.computeUnits }}</td>
<td>{{ gpu.l1cache }}</td>
<td>{{ gpu.l2cache }}</td>
<td>{{ gpu.directXSupport }}</td>
<td>{{ gpu.openGLSupport }}</td>
<td>{{ gpu.openCLSupport }}</td>
<td>{{ gpu.vulkanSupport }}</td>
2024-03-20 15:51:36 -04:00
<td>{{ gpu.shaderModel }}</td> -->
2022-10-07 22:00:14 -04:00
<td>{{ gpu.link }}</td>
2024-03-20 15:51:36 -04:00
2022-10-07 22:00:14 -04:00
<td>{{ gpu.notes }}</td>
</tr>
{% else %}
<tr>
<td colspan="32">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
2022-10-07 22:00:14 -04:00
</div>
2022-10-07 16:04:56 -04:00
{% endblock %}