format tera w/ linter
This commit is contained in:
		| @@ -14,28 +14,25 @@ | ||||
|                     {% else %} | ||||
|                         Vereinsfremde Boote | ||||
|                     {% endif %} | ||||
|                   </span> | ||||
|                   <small class="text-gray-500 dark:text-gray-100"> | ||||
|                     ({{ grouped_boats | length }})  | ||||
|                   </small> | ||||
|                 </span> | ||||
|                 <small class="text-gray-500 dark:text-gray-100">({{ grouped_boats | length }})</small> | ||||
|             </summary> | ||||
|             <div class="pb-3"> | ||||
|               {% for boat in grouped_boats | sort(attribute="name") %} | ||||
|                   <div id="boat-{{ boat.id }}" | ||||
|                       class="py-3 mx-3 boats-js text-black dark:text-white border-t {% if boat.damage != 'locked' and not boat.on_water %} cursor-pointer hover:text-primary-900 dark:hover:text-gray-100 hover:bg-gray-100 dark:hover:bg-primary-950 {% endif %}" | ||||
|                       {% if boat.damage != 'locked' and not boat.on_water %} data-seats="{{ boat.amount_seats }}" data-default_shipmaster_only_steering="{{ boat.default_shipmaster_only_steering }}" data-default-destination="{{ boat.default_destination }}" data-onclick="true" {% endif %} | ||||
|                       data-id="{{ boat.id }}"> | ||||
|                       <span class="status-damage status-damage-{{ boat.damage }}"></span> | ||||
|                       <span {% if boat.damage == 'locked' or boat.on_water %}class="opacity-50"{% endif %}>{{ boat.name }} | ||||
|                           {% if boat.owner %}<span class="opacity-50">(privat)</span>{% endif %} | ||||
|                       </span> | ||||
|                   </div> | ||||
|               {% endfor %} | ||||
|                 {% for boat in grouped_boats | sort(attribute="name") %} | ||||
|                     <div id="boat-{{ boat.id }}" | ||||
|                          class="py-3 mx-3 boats-js text-black dark:text-white border-t {% if boat.damage != 'locked' and not boat.on_water %} cursor-pointer hover:text-primary-900 dark:hover:text-gray-100 hover:bg-gray-100 dark:hover:bg-primary-950 {% endif %}" | ||||
|                          {% if boat.damage != 'locked' and not boat.on_water %} data-seats="{{ boat.amount_seats }}" data-default_shipmaster_only_steering="{{ boat.default_shipmaster_only_steering }}" data-default-destination="{{ boat.default_destination }}" data-onclick="true" {% endif %} | ||||
|                          data-id="{{ boat.id }}"> | ||||
|                         <span class="status-damage status-damage-{{ boat.damage }}"></span> | ||||
|                         <span {% if boat.damage == 'locked' or boat.on_water %}class="opacity-50"{% endif %}>{{ boat.name }} | ||||
|                             {% if boat.owner %}<span class="opacity-50">(privat)</span>{% endif %} | ||||
|                         </span> | ||||
|                     </div> | ||||
|                 {% endfor %} | ||||
|             </div> | ||||
|           </details> | ||||
|         </details> | ||||
|     {% endfor %} | ||||
| {% endmacro show_boats %} | ||||
|  | ||||
| {# Shows the form for creating a new logbook entry. #} | ||||
| {% macro new(shipmaster) %} | ||||
|     <form action="/log" | ||||
|   | ||||
| @@ -191,16 +191,20 @@ | ||||
|                         <small class="text-gray-600 dark:text-gray-100">(Gast)</small> | ||||
|                         {% if allow_removing %} | ||||
|                             <a href="/planned/remove/{{ trip_details_id }}/{{ rower.name }}" | ||||
|                               class="absolute r-0 bg-red-500 w-5 h-5 text-white rounded-full flex items-center justify-center transform rotate-45 top-0 right-0"> | ||||
|                               <svg class="inline h-5 w-5" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"> | ||||
|                                   <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"></path> | ||||
|                               </svg> | ||||
|                               <span class="sr-only">Abmelden</span> | ||||
|                                class="absolute r-0 bg-red-500 w-5 h-5 text-white rounded-full flex items-center justify-center transform rotate-45 top-0 right-0"> | ||||
|                                 <svg class="inline h-5 w-5" | ||||
|                                      width="16" | ||||
|                                      height="16" | ||||
|                                      fill="currentColor" | ||||
|                                      viewBox="0 0 16 16"> | ||||
|                                     <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"></path> | ||||
|                                 </svg> | ||||
|                                 <span class="sr-only">Abmelden</span> | ||||
|                             </a> | ||||
|                         {% endif %} | ||||
|                     {% endif %} | ||||
|                   <span class="hidden">(angemeldet seit | ||||
|                   {{ rower.registered_at }})</span> | ||||
|                     <span class="hidden">(angemeldet seit | ||||
|                     {{ rower.registered_at }})</span> | ||||
|                 </div> | ||||
|             {% endfor %} | ||||
|         {% else %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user