Spaces:
Sleeping
Sleeping
feat: add review status badge for admins
Browse files
src/routes/settings/(nav)/assistants/[assistantId]/+page.svelte
CHANGED
|
@@ -161,6 +161,10 @@
|
|
| 161 |
{/if}
|
| 162 |
{/if}
|
| 163 |
{#if data?.user?.isAdmin}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
{#if !assistant?.createdByMe}
|
| 165 |
<form method="POST" action="?/delete" use:enhance>
|
| 166 |
<button
|
|
|
|
| 161 |
{/if}
|
| 162 |
{/if}
|
| 163 |
{#if data?.user?.isAdmin}
|
| 164 |
+
<span class="rounded-full border px-2 py-0.5 text-sm leading-none text-gray-500"
|
| 165 |
+
>{assistant?.review?.toLocaleUpperCase()}</span
|
| 166 |
+
>
|
| 167 |
+
|
| 168 |
{#if !assistant?.createdByMe}
|
| 169 |
<form method="POST" action="?/delete" use:enhance>
|
| 170 |
<button
|
src/routes/tools/[toolId]/+page.svelte
CHANGED
|
@@ -174,6 +174,10 @@
|
|
| 174 |
{/if}
|
| 175 |
{/if}
|
| 176 |
{#if data?.user?.isAdmin}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
{#if !data.tool?.createdByMe}
|
| 178 |
<form method="POST" action="?/delete" use:enhance>
|
| 179 |
<button
|
|
|
|
| 174 |
{/if}
|
| 175 |
{/if}
|
| 176 |
{#if data?.user?.isAdmin}
|
| 177 |
+
<span class="rounded-full border px-2 py-0.5 text-sm leading-none text-gray-500"
|
| 178 |
+
>{data.tool?.review?.toLocaleUpperCase()}</span
|
| 179 |
+
>
|
| 180 |
+
|
| 181 |
{#if !data.tool?.createdByMe}
|
| 182 |
<form method="POST" action="?/delete" use:enhance>
|
| 183 |
<button
|