Simplify cards, use icons for DCC

This commit is contained in:
2025-05-26 00:04:07 +02:00
parent 1c25ac9b14
commit cc2e374558
4 changed files with 38 additions and 37 deletions

View File

@@ -153,7 +153,13 @@
{% if rolling_stock.decoder %}
<tr>
<th scope="row">Decoder</th>
<td>{{ rolling_stock.decoder }}</td>
<td>{{ rolling_stock.decoder }}
{% if rolling_stock.decoder.sound %}
| <span class="badge text-bg-secondary">
<abbr title="Sound decoder"<i class="bi bi-volume-up-fill"></i></abbr>
</span>
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Address</th>
@@ -348,24 +354,26 @@
<td>{{ rolling_stock.get_decoder_interface }}</td>
</tr>
<tr>
<th class="w-33" scope="row">Address</th>
<td>{{ rolling_stock.address }}</td>
<th scope="row">Manufacturer</th>
<td>{{ rolling_stock.decoder.manufacturer | default:"-" }}</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ rolling_stock.decoder.name }}</td>
</tr>
<tr>
<th scope="row">Manufacturer</th>
<td>{{ rolling_stock.decoder.manufacturer | default:"-" }}</td>
<td>{{ rolling_stock.decoder.name }}
{% if rolling_stock.decoder.sound %}
| <span class="badge text-bg-secondary">
<abbr title="Sound decoder"<i class="bi bi-volume-up-fill"></i></abbr>
</span>
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Version</th>
<td>{{ rolling_stock.decoder.version | default:"-"}}</td>
</tr>
<tr>
<th scope="row">Sound</th>
<td>{{ rolling_stock.decoder.sound | yesno:"Yes,No" }}</td>
<th class="w-33" scope="row">Address</th>
<td>{{ rolling_stock.address }}</td>
</tr>
</tbody>
</table>