Minor improvements

This commit is contained in:
2023-10-02 23:27:57 +02:00
parent 22bee7d95d
commit bcfed3534c
4 changed files with 9 additions and 9 deletions

View File

@@ -46,11 +46,11 @@
</tr> </tr>
<tr> <tr>
<th scope="row">Pages</th> <th scope="row">Pages</th>
<td>{{ d.number_of_pages }}</td> <td>{{ d.number_of_pages|default:"-" }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Year</th> <th scope="row">Year</th>
<td>{{ d.publication_year }}</td> <td>{{ d.publication_year|default:"-" }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -1,9 +1,9 @@
{% if bookshelf_menu %} {% if bookshelf_menu %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false"> <a class="nav-link dropdown-toggle" href="#" id="bookshelfDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Bookshelf Bookshelf
</a> </a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <ul class="dropdown-menu" aria-labelledby="bookshelfDropdownMenuLink">
<li><a class="nav-link" href="{% url 'books' %}">Books</a></li> <li><a class="nav-link" href="{% url 'books' %}">Books</a></li>
</ul> </ul>
</li> </li>

View File

@@ -1,9 +1,9 @@
{% if flatpage_menu %} {% if flatpage_menu %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false"> <a class="nav-link dropdown-toggle" href="#" id="flatpageDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Articles Articles
</a> </a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <ul class="dropdown-menu" aria-labelledby="flatpageDropdownMenuLink">
{% for m in flatpage_menu %} {% for m in flatpage_menu %}
<li><a class="dropdown-item" href="{{ m.get_absolute_url }}">{{ m.name }}</a></li> <li><a class="dropdown-item" href="{{ m.get_absolute_url }}">{{ m.name }}</a></li>
{% endfor %} {% endfor %}

View File

@@ -164,11 +164,11 @@
</tr> </tr>
<tr> <tr>
<th scope="row">Production year</th> <th scope="row">Production year</th>
<td>{{ rolling_stock.production_year | default_if_none:"" }}</td> <td>{{ rolling_stock.production_year|default:"-" }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Purchase date</th> <th scope="row">Purchase date</th>
<td>{{ rolling_stock.purchase_date | default_if_none:"" }}</td> <td>{{ rolling_stock.purchase_date|default:"-" }}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -264,7 +264,7 @@
</tr> </tr>
<tr> <tr>
<th scope="row">Manufacturer</th> <th scope="row">Manufacturer</th>
<td>{{ rolling_stock.decoder.manufacturer|default_if_none:"" }}</td> <td>{{ rolling_stock.decoder.manufacturer|default:"-" }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Version</th> <th scope="row">Version</th>