36 lines
1.7 KiB
Twig
36 lines
1.7 KiB
Twig
<tr{{ attributes }} id="ad_download_{{ download.id }}">
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 truncate">
|
|
{{ download.title }}
|
|
</td>
|
|
|
|
{% if isWidget == false %}
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 max-w-[60ch] truncate">
|
|
{{ download.filename }}
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 truncate">
|
|
{{ download.mediaType }}
|
|
</td>
|
|
{% endif %}
|
|
|
|
<td class="px-6 py-4 whitespace-nowrap text-sm align-middle text-gray-800 dark:text-gray-50">
|
|
{% if download.progress < 100 %}
|
|
<div id="download_progress_{{ download.id }}" class="border-2 border-green-700 rounded-md w-full h-6 align-middle overflow-hidden">
|
|
<div class="text-green-700 rounded-sm text-bold text-gray-950 text-center bg-green-600 h-5"
|
|
style="width:56%">
|
|
<span>{{ download.progress }}%</span>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<twig:StatusBadge color="green" status="Complete" />
|
|
{% endif %}
|
|
</td>
|
|
<td class="px-6 py-4 flex flex-row align-middle justify-center">
|
|
<button {{ stimulus_action('download_list', 'deleteDownload', 'click', {id: download.id}) }}>
|
|
<twig:ux:icon
|
|
name="ic:twotone-cancel" width="18px"
|
|
class="rounded-full align-middle text-red-600"
|
|
title="Remove {{ download.title }} from your Download list. This will not delete the file."
|
|
/>
|
|
</button>
|
|
</td>
|
|
</tr> |