diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/import_table.html')
-rw-r--r-- | ishtar_common/templates/ishtar/import_table.html | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html index cf33341d1..41ee54f05 100644 --- a/ishtar_common/templates/ishtar/import_table.html +++ b/ishtar_common/templates/ishtar/import_table.html @@ -100,36 +100,24 @@ $("#import-list").find('input').prop('disabled', true); </tr> {% endif %} {% if not import.importer_type.type_label %} {# group #} - {% for sub in import.imports.all %} + {% for sub in import.import_list %} <tr> <td></td> - <td> - {{sub.importer_type}} - </td> - <td> - {% if sub.imported_file %} + <td>{{sub.importer_type}}</td> + <td>{% if sub.imported_file %} <a href='{{sub.imported_file.url}}'>{% trans "Source file" %}</a> - {% endif %} - </td> - <td> - {% if sub.imported_images %} + {% endif %}</td> + <td>{% if sub.imported_images %} <a href="{{ sub.imported_images.url }}">{% trans "Media file" %}</a> - {% else %} - – + {% else %} – {% endif %} </td> - <td> - </td> - <td> - {{sub.status}} - </td> - <td> - </td> - <td> - {% if sub.need_matching %} + <td></td> + <td>{{sub.status}}</td> + <td></td> + <td>{% if sub.need_matching %} <a href='{% url "import_link_unmatched" sub.pk %}'>{% trans "Match"%}</a> - {% endif %} - </td> + {% endif %}</td> <td style="white-space: nowrap;">{% if sub.error_file %} <i class="text-danger fa fa-exclamation-triangle" aria-hidden="true"></i> <a href='{{sub.error_file.url}}'>{% trans "File" context "not a directory" %}</a> {% endif %}</td> |