contenu de l'encadré
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
gribse 2025-04-21 21:10:59 +02:00
parent 69e4d2630f
commit d37066df8d

View file

@ -14,7 +14,13 @@
{{ if $specs }} {{ if $specs }}
<div class="typewriter-specs"> <div class="typewriter-specs">
<h3>Fiche technique</h3> <h3>{{$specs.make}} {{$specs.model}}</h3>
{{ with $specs.logo }}
<figure class="logo">
<img src="{{ . }}" alt="Logo of {{ $specs.manufacturer }}">
</figure>
{{ end }}
{{ with $specs.image }} {{ with $specs.image }}
<figure> <figure>
<img src="{{ . }}" alt="Image of {{ $specs.manufacturer }} {{ $specs.type }}"> <img src="{{ . }}" alt="Image of {{ $specs.manufacturer }} {{ $specs.type }}">
@ -22,12 +28,8 @@
{{ end }} {{ end }}
<table> <table>
<tbody> <tbody>
{{ with $specs.logo }}
<figure class="logo"> {{ with $specs.make }}
<img src="{{ . }}" alt="Logo of {{ $specs.manufacturer }}">
</figure>
{{ end }}
{{ with $specs.manufacturer }}
<tr> <tr>
<th>Fabricant</th> <th>Fabricant</th>
<td>{{ . }}</td> <td>{{ . }}</td>
@ -41,9 +43,9 @@
</tr> </tr>
{{ end }} {{ end }}
{{ with $specs.dateLaunched }} {{ with $specs.dateManufactured }}
<tr> <tr>
<th>Date de lancement</th> <th>Date de fabrication</th>
<td>{{ . }}</td> <td>{{ . }}</td>
</tr> </tr>
{{ end }} {{ end }}
@ -64,14 +66,14 @@
{{ with $specs.linkWiki }} {{ with $specs.linkWiki }}
<tr> <tr>
<th>Lien Wikipedia</th> <th>Ressource externe</th>
<td><a href="{{ . }}" target="_blank">Link</a></td> <td><a href="{{ . }}" target="_blank">Link</a></td>
</tr> </tr>
{{ end }} {{ end }}
{{ with $specs.linkTpdb }} {{ with $specs.linkTpdb }}
<tr> <tr>
<th>Lien Typewriter Database</th> <th>Typewriter Database</th>
<td><a href="{{ . }}" target="_blank">Link</a></td> <td><a href="{{ . }}" target="_blank">Link</a></td>
</tr> </tr>
{{ end }} {{ end }}