diff --git a/src/unfold/contrib/import_export/templates/admin/import_export/change_list_export_item.html b/src/unfold/contrib/import_export/templates/admin/import_export/change_list_export_item.html index c862be3f6..0f51aa643 100644 --- a/src/unfold/contrib/import_export/templates/admin/import_export/change_list_export_item.html +++ b/src/unfold/contrib/import_export/templates/admin/import_export/change_list_export_item.html @@ -3,5 +3,5 @@ {% if has_export_permission %} {% trans "Export" as title %} {% url opts|admin_urlname:'export' as link %} - {% include "unfold/helpers/tab_action.html" with title=title link=link|add:cl.get_query_string %} + {% include "unfold/helpers/tab_action.html" with title=title link=link|add:cl.get_query_string icon="download" %} {% endif %} diff --git a/src/unfold/contrib/import_export/templates/admin/import_export/change_list_import_item.html b/src/unfold/contrib/import_export/templates/admin/import_export/change_list_import_item.html index d80d43292..52976530f 100644 --- a/src/unfold/contrib/import_export/templates/admin/import_export/change_list_import_item.html +++ b/src/unfold/contrib/import_export/templates/admin/import_export/change_list_import_item.html @@ -3,5 +3,5 @@ {% if has_import_permission %} {% trans "Import" as title %} {% url opts|admin_urlname:"import" as link %} - {% include "unfold/helpers/tab_action.html" with title=title link=link %} + {% include "unfold/helpers/tab_action.html" with title=title link=link icon="upload" %} {% endif %} diff --git a/src/unfold/templates/unfold/helpers/tab_action.html b/src/unfold/templates/unfold/helpers/tab_action.html index 69c56f4cb..010a823b1 100644 --- a/src/unfold/templates/unfold/helpers/tab_action.html +++ b/src/unfold/templates/unfold/helpers/tab_action.html @@ -11,6 +11,10 @@ {{ action.icon }} + {% elif icon %} + + {{ icon }} + {% endif %} {{ title }}