Add icon on http function list view to denote public status

This commit is contained in:
Peter Stockings
2023-12-21 20:04:39 +11:00
parent 37b9e10914
commit e124025568

View File

@@ -22,12 +22,23 @@
<tbody class="[&amp;_tr:last-child]:border-0" data-id="62"> <tbody class="[&amp;_tr:last-child]:border-0" data-id="62">
{% for function in http_functions %} {% for function in http_functions %}
<tr class="border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted" data-id="63"> <tr class="border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted" data-id="63">
<td class="p-4 align-middle [&amp;:has([role=checkbox])]:pr-0 font-medium cursor-pointer" <td class="p-4 align-middle [&amp;:has([role=checkbox])]:pr-0 font-medium flex items-center">
data-id="66">{{ function.name }} <span class="text-lg">{{ function.name }}</span>
<span <span
class="inline-flex items-center justify-center w-4 h-4 ms-2 text-xs font-semibold text-blue-800 bg-blue-200 rounded-full"> class="inline-flex items-center justify-center w-4 h-4 ms-2 text-xs font-semibold text-blue-800 bg-blue-200 rounded-full ml-1">
{{ function.invoked_count }} {{ function.invoked_count }}
</span> </span>
{% if function.is_public %}
<span class="ml-1">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" data-slot="icon" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round"
d="M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z" />
</svg>
</span>
{% endif %}
</td> </td>
<td class="p-4 align-middle [&amp;:has([role=checkbox])]:pr-0 hidden md:table-cell" data-id="67"> <td class="p-4 align-middle [&amp;:has([role=checkbox])]:pr-0 hidden md:table-cell" data-id="67">
<a <a