mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Fix columns size
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Type</th>
|
||||
<th class="w-33" scope="row">Type</th>
|
||||
<td>{{ d.rolling_class.type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -54,7 +54,7 @@
|
||||
<td>{{ d.era }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Manufacturer</th>
|
||||
<th class="w-33" 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="w-25" scope="row">Decoder</th>
|
||||
<th class="w-33" scope="row">Decoder</th>
|
||||
<td>{{ d.decoder }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -17,25 +17,25 @@
|
||||
<tbody>
|
||||
{% if d.logo %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Logo</th>
|
||||
<th class="w-33" scope="row">Logo</th>
|
||||
<td><img style="max-height: 48px" src="{{ d.logo.url }}" /></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Name</th>
|
||||
<th class="w-33" scope="row">Name</th>
|
||||
<td>{{ d.extended_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Abbreviation</th>
|
||||
<th class="w-33" scope="row">Abbreviation</th>
|
||||
<td>{{ d.name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Country</th>
|
||||
<th class="w-33" scope="row">Country</th>
|
||||
<td>{{ d.country.name }} <img src="{{ d.country.flag }}" alt="{{ d.country }}" />
|
||||
</tr>
|
||||
{% if d.freelance %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Notes</th>
|
||||
<th class="w-33" scope="row">Notes</th>
|
||||
<td>A <em>freelance</em> company</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
@@ -82,7 +82,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Company</th>
|
||||
<th class="w-33" scope="row">Company</th>
|
||||
<td><abbr title="{{ consist.company.extended_name }}">{{ consist.company }}</abbr></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -36,12 +36,12 @@
|
||||
<tbody>
|
||||
{% if d.address %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Address</th>
|
||||
<th class="w-33" scope="row">Address</th>
|
||||
<td>{{ d.address }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Company</th>
|
||||
<th class="w-33" scope="row">Company</th>
|
||||
<td><abbr title="{{ d.company.extended_name }}">{{ d.company }}</abbr></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -17,18 +17,18 @@
|
||||
<tbody>
|
||||
{% if d.logo %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Logo</th>
|
||||
<th class="w-33" scope="row">Logo</th>
|
||||
<td><img style="max-height: 48px" src="{{ d.logo.url }}" /></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if d.website %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Website</th>
|
||||
<th class="w-33" scope="row">Website</th>
|
||||
<td><a href="{{ d.website }}" target="_blank"><i class="bi bi-box-arrow-up-right"></i></a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Category</th>
|
||||
<th class="w-33" scope="row">Category</th>
|
||||
<td>{{ d.category | title }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@@ -64,7 +64,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Type</th>
|
||||
<th class="w-33" scope="row">Type</th>
|
||||
<td>{{ rolling_stock.rolling_class.type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -95,7 +95,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Manufacturer</th>
|
||||
<th class="w-33" scope="row">Manufacturer</th>
|
||||
<td>{%if rolling_stock.manufacturer %}
|
||||
<a href="{% url 'filtered' _filter="manufacturer" search=rolling_stock.manufacturer.slug %}">{{ rolling_stock.manufacturer }}{% if rolling_stock.manufacturer.website %}</a> <a href="{{ rolling_stock.manufacturer.website }}" target="_blank"><i class="bi bi-box-arrow-up-right"></i></a>{% endif %}
|
||||
{% endif %}</td>
|
||||
@@ -119,7 +119,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Interface</th>
|
||||
<th class="w-33" scope="row">Interface</th>
|
||||
<td>{{ rolling_stock.get_decoder_interface_display }}</td>
|
||||
</tr>
|
||||
{% if rolling_stock.decoder %}
|
||||
@@ -145,7 +145,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Manufacturer</th>
|
||||
<th class="w-33" scope="row">Manufacturer</th>
|
||||
<td>{%if rolling_stock.manufacturer %}
|
||||
<a href="{% url 'filtered' _filter="manufacturer" search=rolling_stock.manufacturer.slug %}">{{ rolling_stock.manufacturer }}{% if rolling_stock.manufacturer.website %}</a> <a href="{{ rolling_stock.manufacturer.website }}" target="_blank"><i class="bi bi-box-arrow-up-right"></i></a>{% endif %}
|
||||
{% endif %}</td>
|
||||
@@ -182,7 +182,7 @@
|
||||
<tbody>
|
||||
{% for p in rolling_stock_properties %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">{{ p.property }}</th>
|
||||
<th class="w-33" scope="row">{{ p.property }}</th>
|
||||
<td>{{ p.value }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -199,7 +199,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Class</th>
|
||||
<th class="w-33" scope="row">Class</th>
|
||||
<td>{{ rolling_stock.rolling_class.identifier }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -234,7 +234,7 @@
|
||||
<tbody>
|
||||
{% for p in class_properties %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">{{ p.property }}</th>
|
||||
<th class="w-33" scope="row">{{ p.property }}</th>
|
||||
<td>{{ p.value }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -255,7 +255,7 @@
|
||||
<td>{{ rolling_stock.get_decoder_interface_display }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Address</th>
|
||||
<th class="w-33" scope="row">Address</th>
|
||||
<td>{{ rolling_stock.address }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -301,7 +301,7 @@
|
||||
<tbody>
|
||||
{% for d in rolling_stock.document.all %}
|
||||
<tr>
|
||||
<td class="w-25">{{ d.description }}</td>
|
||||
<td class="w-33">{{ d.description }}</td>
|
||||
<td><a href="{{ d.file.url }}" target="_blank">{{ d.filename }}</a></td>
|
||||
<td class="text-end">{{ d.file.size | filesizeformat }}</td>
|
||||
</tr>
|
||||
@@ -318,7 +318,7 @@
|
||||
<tbody>
|
||||
{% for d in rolling_stock.decoder.document.all %}
|
||||
<tr>
|
||||
<td class="w-25">{{ d.description }}</td>
|
||||
<td class="w-33">{{ d.description }}</td>
|
||||
<td><a href="{{ d.file.url }}" target="_blank">{{ d.filename }}</a></td>
|
||||
<td class="text-end">{{ d.file.size | filesizeformat }}</td>
|
||||
</tr>
|
||||
@@ -337,7 +337,7 @@
|
||||
<tbody>
|
||||
{% for j in rolling_stock_journal %}
|
||||
<tr>
|
||||
<th class="w-25" scope="row">{{ j.date }}</th>
|
||||
<th class="w-33" scope="row">{{ j.date }}</th>
|
||||
<td>{{ j.log | safe }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -14,19 +14,19 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Name</th>
|
||||
<th class="w-33" scope="row">Name</th>
|
||||
<td>{{ d.scale }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Ratio</th>
|
||||
<th class="w-33" scope="row">Ratio</th>
|
||||
<td>{{ d.ratio }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Gauge</th>
|
||||
<th class="w-33" scope="row">Gauge</th>
|
||||
<td>{{ d.gauge }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Tracks</th>
|
||||
<th class="w-33" scope="row">Tracks</th>
|
||||
<td>{{ d.tracks }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@@ -14,11 +14,11 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Type</th>
|
||||
<th class="w-33" scope="row">Type</th>
|
||||
<td>{{ d.type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="w-25" scope="row">Category</th>
|
||||
<th class="w-33" scope="row">Category</th>
|
||||
<td>{{ d.category | title}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user