RunnersOverview badge to team/org

ref #51
This commit is contained in:
Philipp Dormann 2021-01-30 17:56:58 +01:00
parent 3490abe9a7
commit a02be78df5

View File

@ -86,7 +86,16 @@
{/if} {/if}
</td> </td>
<td class="px-6 py-4 whitespace-nowrap"> <td class="px-6 py-4 whitespace-nowrap">
{runner.group.name} {#if runner.group.responseType === 'RUNNERTEAM'}
<a
href="../teams/1"
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{runner.group.name}</a>
{/if}
{#if runner.group.responseType === 'RUNNERORGANIZATION'}
<a
href="../orgs/1"
class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">{runner.group.name}</a>
{/if}
</td> </td>
<td class="px-6 py-4 whitespace-nowrap">{runner.distance}</td> <td class="px-6 py-4 whitespace-nowrap">{runner.distance}</td>
{#if active_deletes[runner.id] === true} {#if active_deletes[runner.id] === true}