fix: download progress indicator
This commit is contained in:
@@ -15,9 +15,7 @@
|
|||||||
<span class="w-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
|
<span class="w-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="p-1.5 bg-green-600 rounded-full">
|
<twig:StatusBadge color="green" status="Complete" />
|
||||||
<span class="inline-block text-center text-gray-50">Complete</span>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -34,7 +32,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm text-end text-gray-800 dark:text-gray-50">
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-end text-gray-800 dark:text-gray-50">
|
||||||
<span class="p-1.5 bg-purple-600 rounded-full">
|
<span class="p-1.5 bg-purple-600 rounded-full">
|
||||||
<span class="w-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
|
<span class="mw-4 inline-block text-center text-gray-50">{{ entity.progress }}</span>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</template>
|
</template>
|
||||||
@@ -59,9 +57,7 @@
|
|||||||
{{ entity.title }}
|
{{ entity.title }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800 dark:text-gray-50">
|
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800 dark:text-gray-50">
|
||||||
<span class="p-1.5 bg-green-600 rounded-full">
|
<twig:StatusBadge color="green" status="Complete" />
|
||||||
<span class="inline-block text-center text-gray-50">Complete</span>
|
|
||||||
</span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</template>
|
</template>
|
||||||
@@ -71,5 +67,4 @@
|
|||||||
|
|
||||||
{% block remove %}
|
{% block remove %}
|
||||||
<turbo-stream action="remove" target="ad_download_{{ id }}"></turbo-stream>
|
<turbo-stream action="remove" target="ad_download_{{ id }}"></turbo-stream>
|
||||||
{# <turbo-stream action="remove" target="cd_download_{{ id }}"></turbo-stream>#}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 min-w-[45ch] max-w-[45ch] truncate">
|
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 min-w-[45ch] max-w-[45ch] truncate">
|
||||||
{{ download.title }}
|
{{ download.title }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-800 dark:text-gray-50">
|
<td class="px-6 py-4 whitespace-nowrap text-sm align-middle text-gray-800 dark:text-gray-50">
|
||||||
{% if download.progress < 100 %}
|
{% if download.progress < 100 %}
|
||||||
<span class="p-1.5 bg-purple-600 rounded-full">
|
<div class="w-[3.25ch] h-[3.25ch] bg-purple-600 rounded-full block text-center table-cell align-middle text-xs text-gray-50">
|
||||||
<span class="w-4 inline-block text-center text-gray-50">{{ download.progress }}</span>
|
{{ download.progress }}
|
||||||
</span>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<twig:StatusBadge color="green" status="Completed" />
|
<twig:StatusBadge color="green" status="Completed" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user