correct the hardware tables in the computer_detail_view
This commit is contained in:
parent
c7bad81c13
commit
8b506d9099
|
@ -93,32 +93,33 @@
|
||||||
{% if cpu_list or ram_list or disks_list or raid_disk_pairs or computer.host %}
|
{% if cpu_list or ram_list or disks_list or raid_disk_pairs or computer.host %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
{% if cpu_list or ram_list or disks_list or computer.host %}
|
||||||
<div class="header">Hardware</div>
|
<div class="header">Hardware</div>
|
||||||
<table class="ui celled table">
|
<table class="ui celled table">
|
||||||
|
{% if cpu_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>CPUs:</b></td>
|
<td><b>CPUs:</b></td>
|
||||||
<td>
|
<td>
|
||||||
{% if cpu_list %}
|
|
||||||
{% for cpu in cpu_list %}
|
{% for cpu in cpu_list %}
|
||||||
{{ cpu.amount }}x {{ cpu.cpu }}<br>
|
{{ cpu.amount }}x {{ cpu.cpu }}<br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if ram_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>RAM Modules:</b></td>
|
<td><b>RAM Modules:</b></td>
|
||||||
<td>
|
<td>
|
||||||
{% if ram_list %}
|
|
||||||
{% for module in ram_list %}
|
{% for module in ram_list %}
|
||||||
{{ module.amount }}x {{ module.ram }}<br>
|
{{ module.amount }}x {{ module.ram }}<br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if disks_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>Disks:</b></td>
|
<td><b>Disks:</b></td>
|
||||||
<td>
|
<td>
|
||||||
{% if disks_list %}
|
|
||||||
{% for disk in disks_list %}
|
{% for disk in disks_list %}
|
||||||
{{ disk.amount }}x {{ disk.disk }}<br>
|
{{ disk.amount }}x {{ disk.disk }}<br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -126,6 +127,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if raid_disk_pairs %}
|
{% if raid_disk_pairs %}
|
||||||
<div class="header">RAID</div>
|
<div class="header">RAID</div>
|
||||||
|
|
Loading…
Reference in New Issue