Compare commits

..

2 Commits

Author SHA1 Message Date
4e1de0c886 Merge pull request 'show 'no reservations' if no reservations :-)' (#336) from reservations into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m57s
CI/CD Pipeline / deploy-staging (push) Successful in 5m39s
CI/CD Pipeline / deploy-main (push) Has been skipped
Reviewed-on: #336
2024-04-02 21:31:53 +02:00
244eb1be07 show 'no reservations' if no reservations :-)
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
2024-04-02 21:31:02 +02:00
3 changed files with 26 additions and 26 deletions

View File

@ -1,5 +1,4 @@
{% macro boatreservation() %}
{% if reservations %}
<div class="bg-white dark:bg-primary-900 rounded-md shadow pb-2 mt-3">
<h2 class="h2">Reservierungen ({{ reservations | length }})</h2>
<div class="grid grid-cols-1 gap-3 mb-3 w-full">
@ -19,10 +18,11 @@
</span>
<span class="text-sm italic">{{ reservation.usage }}</span>
</div>
{% else %}
<p class="p-3 text-center text-black dark:text-white">Keine Reservierung</p>
{% endfor %}
</div>
</div>
{% endif %}
{% endmacro boatreservation %}
{% macro header(loggedin_user) %}
<header class="bg-primary-900 text-white flex justify-center p-3 fixed w-full z-10">

View File

@ -16,12 +16,12 @@
<div>{{ log::show_boats(only_ones=false) }}</div>
</div>
</div>
<div class="md:col-span-3 bg-white dark:bg-primary-900 rounded-md shadow">
<div class="lg:col-span-3 bg-white dark:bg-primary-900 rounded-md shadow">
<h2 class="h2">Neue Ausfahrt</h2>
<div class="p-3">{{ log::new(only_ones=false, shipmaster=-1) }}</div>
</div>
<div>
<div class="bg-white dark:bg-primary-900 rounded-md shadow">
<div class="bg-white dark:bg-primary-900 rounded-md shadow pb-2">
<h2 class="h2">Am Wasser</h2>
<div>
{% if on_water | length > 0 %}

View File

@ -11,7 +11,7 @@
<div>{{ log::show_boats(only_ones=false) }}</div>
</div>
</div>
<div class="md:col-span-3 bg-white dark:bg-primary-900 rounded-md shadow">
<div class="lg:col-span-3 bg-white dark:bg-primary-900 rounded-md shadow">
<h2 class="h2">Neue Ausfahrt</h2>
<div class="p-3">{{ log::new(shipmaster=loggedin_user.id) }}</div>
</div>