diff --git a/src/Twig/Components/DownloadListRow.php b/src/Twig/Components/DownloadListRow.php new file mode 100644 index 0000000..1def6f0 --- /dev/null +++ b/src/Twig/Components/DownloadListRow.php @@ -0,0 +1,14 @@ + {% endblock %} {% block update %} {% if entity.status != "Complete" %} - + {% else %} @@ -54,23 +35,7 @@ {% endif %} diff --git a/templates/components/DownloadList.html.twig b/templates/components/DownloadList.html.twig index ab6e10d..637c180 100644 --- a/templates/components/DownloadList.html.twig +++ b/templates/components/DownloadList.html.twig @@ -31,42 +31,7 @@ {% if this.downloads.items|length > 0 %} {% for download in this.downloads.items %} - - - {{ download.title }} - - - {% if this.isWidget == false %} - - {{ download.filename }} - - - {{ download.mediaType }} - - {% endif %} - - - {% if download.progress < 100 %} -
-
- {{ download.progress }}% -
-
- {% else %} - - {% endif %} - - - - - + {% endfor %} {% if this.isWidget == true and this.downloads.items|length > this.perPage %} diff --git a/templates/components/DownloadListRow.html.twig b/templates/components/DownloadListRow.html.twig new file mode 100644 index 0000000..12f44c9 --- /dev/null +++ b/templates/components/DownloadListRow.html.twig @@ -0,0 +1,36 @@ + + + {{ download.title }} + + + {% if isWidget == false %} + + {{ download.filename }} + + + {{ download.mediaType }} + + {% endif %} + + + {% if download.progress < 100 %} +
+
+ {{ download.progress }}% +
+
+ {% else %} + + {% endif %} + + + + + \ No newline at end of file