feat: show org names for teams_distance slide

This commit is contained in:
Philipp Dormann 2025-04-04 22:16:59 +02:00
parent c286969a9d
commit c6f7210196
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314

View File

@ -1,12 +1,9 @@
<script> <script>
import axios from "axios"; import axios from "axios";
import bg from "/beamershow_background.png?import"; import bg from "/beamershow_background.png?inline";
import { _ } from "svelte-i18n"; import { _ } from "svelte-i18n";
import { slide } from "svelte/transition"; import { slide } from "svelte/transition";
import { apikey, api_endpoint, laptime_track } from "./store.js"; import { apikey, api_endpoint, laptime_track } from "./store.js";
function init(el) {
el.focus();
}
$: pages = [ $: pages = [
"general", "general",
"runners_distance", "runners_distance",
@ -313,6 +310,11 @@
> >
{$_("top-organisationen")} {$_("top-organisationen")}
</h1> </h1>
{#if orgs.length === 0}
<p class="w-full text-center text-3xl font-semibold">
Noch keine Daten...
</p>
{:else}
<table <table
class="table font-semibold p-4 bg-white shadow rounded-lg w-full" class="table font-semibold p-4 bg-white shadow rounded-lg w-full"
> >
@ -351,6 +353,7 @@
{/each} {/each}
</tbody> </tbody>
</table> </table>
{/if}
</div> </div>
{:else if current_page === "teams_distance"} {:else if current_page === "teams_distance"}
<div transition:slide|local> <div transition:slide|local>
@ -388,6 +391,7 @@
{i + 1} {i + 1}
</td> </td>
<td class="border p-4 dark:border-dark-5"> <td class="border p-4 dark:border-dark-5">
{t.parent.name}<br />
{t.name} {t.name}
</td> </td>
<td class="border p-4 dark:border-dark-5"> <td class="border p-4 dark:border-dark-5">