Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
4 changes: 4 additions & 0 deletions src/unfold/templates/unfold/helpers/tab_action.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<span class="material-symbols-outlined">
{{ action.icon }}
</span>
{% elif icon %}
<span class="material-symbols-outlined">
{{ icon }}
</span>
{% endif %}

{{ title }}
Expand Down