Add documents to decoders (#22)

* Add decoder documents support
* Use abstract model for Documents
* Increase version
* Code cleanup
This commit is contained in:
2023-10-01 00:03:41 +02:00
committed by GitHub
parent 9483648a1f
commit 5d536ce568
16 changed files with 161 additions and 60 deletions

View File

@@ -32,7 +32,7 @@
</thead>
<tbody>
<tr>
<th class="th-35" scope="row">Type</th>
<th class="w-25" scope="row">Type</th>
<td>{{ d.rolling_class.type }}</td>
</tr>
<tr>
@@ -54,7 +54,7 @@
<td>{{ d.era }}</td>
</tr>
<tr>
<th class="th-35" scope="row">Manufacturer</th>
<th class="w-25" scope="row">Manufacturer</th>
<td>{%if d.manufacturer %}
<a href="{% url 'filtered' _filter="manufacturer" search=d.manufacturer.slug %}">{{ d.manufacturer }}{% if d.manufacturer.website %}</a> <a href="{{ d.manufacturer.website }}" target="_blank"><i class="bi bi-box-arrow-up-right"></i></a>{% endif %}
{% endif %}</td>
@@ -78,7 +78,7 @@
</thead>
<tbody>
<tr>
<th class="th-35" scope="row">Decoder</th>
<th class="w-25" scope="row">Decoder</th>
<td>{{ d.decoder }}</td>
</tr>
<tr>