This commit is contained in:
Andras Bacsai 2022-04-07 18:51:52 +02:00
parent aae108032c
commit fedb38f2bc
6 changed files with 16 additions and 16 deletions

View File

@ -47,8 +47,8 @@
</div> </div>
{:else} {:else}
<div class="flex flex-col"> <div class="flex flex-col">
{#if $session.teamId === '0' && ownApplications.length > 0} {#if $session.teamId === '0' && ownApplications.length > 0 && otherApplications.length > 0}
<div class="text-xl font-bold pb-5 px-1">Your Team's Applications</div> <div class="text-xl font-bold pb-5 px-1">Current Team</div>
{/if} {/if}
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each ownApplications as application} {#each ownApplications as application}
@ -56,7 +56,7 @@
{/each} {/each}
</div> </div>
{#if otherApplications.length > 0 && $session.teamId === '0'} {#if otherApplications.length > 0 && $session.teamId === '0'}
<div class="text-xl font-bold pb-5 px-1 pt-10 px-6">Other Team's Applications</div> <div class="text-xl font-bold pb-5 pt-10 px-6">Other Team's</div>
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each otherApplications as application} {#each otherApplications as application}
<Application {application} /> <Application {application} />

View File

@ -52,8 +52,8 @@
</div> </div>
{:else} {:else}
<div class="flex flex-col px-8"> <div class="flex flex-col px-8">
{#if $session.teamId === '0' && ownDatabases.length > 0} {#if $session.teamId === '0' && ownDatabases.length > 0 && otherDatabases.length > 0}
<div class="text-xl font-bold pb-5 px-1">Your Team's Databases</div> <div class="text-xl font-bold pb-5 px-6">Current Team</div>
{/if} {/if}
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each ownDatabases as database} {#each ownDatabases as database}
@ -90,7 +90,7 @@
{/each} {/each}
</div> </div>
{#if otherDatabases.length > 0 && $session.teamId === '0'} {#if otherDatabases.length > 0 && $session.teamId === '0'}
<div class="text-xl font-bold pb-5 px-1 pt-10 px-6">Other Team's Databases</div> <div class="text-xl font-bold pb-5 pt-10 px-6">Other Team's</div>
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each otherDatabases as database} {#each otherDatabases as database}
<a href="/databases/{database.id}" class="no-underline p-2 w-96"> <a href="/databases/{database.id}" class="no-underline p-2 w-96">

View File

@ -63,8 +63,8 @@
</div> </div>
{:else} {:else}
<div class="flex flex-col"> <div class="flex flex-col">
{#if $session.teamId === '0' && ownDestinations.length > 0} {#if $session.teamId === '0' && ownDestinations.length > 0 && otherDestinations.length > 0}
<div class="text-xl font-bold pb-5 px-1">Your Team's Destinations</div> <div class="text-xl font-bold pb-5 px-6">Current Team</div>
{/if} {/if}
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each ownDestinations as destination} {#each ownDestinations as destination}
@ -81,7 +81,7 @@
</div> </div>
{#if otherDestinations.length > 0 && $session.teamId === '0'} {#if otherDestinations.length > 0 && $session.teamId === '0'}
<div class="text-xl font-bold pb-5 px-1 pt-10 px-6">Other Team's Destinations</div> <div class="text-xl font-bold pb-5 pt-10 px-6">Other Team's</div>
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each otherDestinations as destination} {#each otherDestinations as destination}
<a href="/destinations/{destination.id}" class="no-underline p-2 w-96"> <a href="/destinations/{destination.id}" class="no-underline p-2 w-96">

View File

@ -57,8 +57,8 @@
</div> </div>
{:else} {:else}
<div class="flex flex-col"> <div class="flex flex-col">
{#if $session.teamId === '0' && ownServices.length > 0} {#if $session.teamId === '0' && ownServices.length > 0 && otherServices.length > 0}
<div class="text-xl font-bold pb-5 px-1">Your Team's Applications</div> <div class="text-xl font-bold pb-5 px-1">Current Team</div>
{/if} {/if}
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each ownServices as service} {#each ownServices as service}
@ -105,7 +105,7 @@
{/each} {/each}
</div> </div>
{#if otherServices.length > 0 && $session.teamId === '0'} {#if otherServices.length > 0 && $session.teamId === '0'}
<div class="text-xl font-bold pb-5 px-1 pt-10 ">Other Team's Applications</div> <div class="text-xl font-bold pb-5 px-1 pt-10 ">Other Team's</div>
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each otherServices as service} {#each otherServices as service}
<a href="/services/{service.id}" class="no-underline p-2 w-96"> <a href="/services/{service.id}" class="no-underline p-2 w-96">

View File

@ -61,8 +61,8 @@
</div> </div>
{:else} {:else}
<div class="flex flex-col"> <div class="flex flex-col">
{#if $session.teamId === '0' && ownSources.length > 0} {#if $session.teamId === '0' && ownSources.length > 0 && otherSources.length > 0}
<div class="text-xl font-bold pb-5 px-1">Your Team's Applications</div> <div class="text-xl font-bold pb-5 px-1">Current Team</div>
{/if} {/if}
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each ownSources as source} {#each ownSources as source}
@ -90,7 +90,7 @@
</div> </div>
{#if otherSources.length > 0 && $session.teamId === '0'} {#if otherSources.length > 0 && $session.teamId === '0'}
<div class="text-xl font-bold pb-5 px-1 pt-10 ">Other Team's Applications</div> <div class="text-xl font-bold pb-5 px-1 pt-10 ">Other Team's</div>
<div class="flex flex-col md:flex-row flex-wrap px-2 justify-center"> <div class="flex flex-col md:flex-row flex-wrap px-2 justify-center">
{#each otherSources as source} {#each otherSources as source}
<a href="/sources/{source.id}" class="no-underline p-2 w-96"> <a href="/sources/{source.id}" class="no-underline p-2 w-96">

View File

@ -123,7 +123,7 @@
{/each} {/each}
</div> </div>
<div class="px-6 pb-5 pt-10 text-xl font-bold">Other Teams</div> <div class="px-6 pb-5 pt-10 text-xl font-bold">Other Team's</div>
<div class="flex flex-col flex-wrap justify-center px-2 md:flex-row"> <div class="flex flex-col flex-wrap justify-center px-2 md:flex-row">
{#each otherTeams as team} {#each otherTeams as team}
<a href="/teams/{team.teamId}" class="w-96 p-2 no-underline"> <a href="/teams/{team.teamId}" class="w-96 p-2 no-underline">