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

74 lines
1.8 KiB
Twig
Raw Normal View History

2022-09-29 20:09:31 -04:00
{% extends 'base.html.twig' %}
{% block title %}GPU Cores{% endblock %}
{% block body %}
<h2>GPU Cores</h2>
<div class="small callout primary">
<ul>
<li>
<a href="{{ path('gpu-core_new') }}">Add a GPU Core</a>
</li>
</ul>
</div>
<table class="hover scroll sortable stack">
<thead>
<tr>
<th>Actions</th>
<th>Id</th>
<th>Brand</th>
<th>Name</th>
<th>Variant</th>
2022-10-07 16:04:34 -04:00
<th>Generation</th>
2022-09-29 20:09:31 -04:00
<th>Architecture</th>
<th>ProcessNode</th>
</tr>
</thead>
<tbody>
{% for gpu_core in gpu_cores %}
<tr>
<td>
<ul>
<li>
<a href="{{ path('gpu-core_show', {'id': gpu_core.id}) }}">View 👁</a>
</li>
<li>
<a href="{{ path('gpu-core_edit', {'id': gpu_core.id}) }}">Edit <span class="edit-icon">&#9998;</span></a>
</li>
</ul>
</td>
<td>{{ gpu_core.id }}</td>
<td>{{ gpu_core.brand.name }}</td>
<td>{{ gpu_core.name }}</td>
<td>{{ gpu_core.variant }}</td>
2022-10-07 16:04:34 -04:00
{% if gpu_core.generationLink %}
<td><a href="{{ gpu_core.generationLink }}">{{ gpu_core.generationName }}</a></td>
{% else %}
<td>{{ gpu_core.generationName }}</td>
{% endif %}
{% if gpu_core.architectureLink %}
<td><a href="{{ gpu_core.architectureLink }}">{{ gpu_core.architecture }}</a></td>
{% else %}
<td>{{ gpu_core.architecture }}</td>
{% endif %}
{% if gpu_core.processNode %}
<td>{{ gpu_core.processNode }} nm</td>
{% else %}
<td>?</td>
{% endif %}
2022-09-29 20:09:31 -04:00
</tr>
{% else %}
<tr>
<td colspan="8">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}