diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-12-01 15:59:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:38:32 +0200 |
commit | c17d33377daa812fad40b1a85a29a8bbb9dc5a85 (patch) | |
tree | 73619cf76340599c08ea0f21e5ac5c74380569db /ishtar_common/templates | |
parent | 837490db80ac148c89c6cc7f3c427a023027d8b4 (diff) | |
download | Ishtar-c17d33377daa812fad40b1a85a29a8bbb9dc5a85.tar.bz2 Ishtar-c17d33377daa812fad40b1a85a29a8bbb9dc5a85.zip |
🐛 Import sheet - remove PDF/ODT export (refs #5664)
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_nav.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index a8c344bae..47e99f963 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -28,7 +28,7 @@ {% if current_user.is_superuser and next %} <button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" - onclick='if(confirm("{% trans 'Are you sure to restore to this version? All changes made since this version will be lost.' %}")){load_url("{% url revert_url item.pk item.history_date|date:"c"%}", function(){closeAllWindows();load_window("{% url show_url item.pk None %}");});}' + onclick='if(confirm("{% trans "Are you sure to restore to this version? All changes made since this version will be lost." %}")){load_url("{% url revert_url item.pk item.history_date|date:"c"%}", function(){closeAllWindows();load_window("{% url show_url item.pk None %}");});}' title="{% trans 'Restore this version' %}"> <i class="fa fa-history"></i> </button> @@ -46,7 +46,7 @@ <div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'Pin' %}"> <a class="btn btn-secondary pin-action" href="#" - onclick='$.get("{% url "pin" item.SLUG item.pk %}", function(){load_shortcut_menu(); display_info("{% trans 'Item pined in your shortcut menu.' %}")});' title="{% trans 'Pin' %}"> + onclick='$.get("{% url "pin" item.SLUG item.pk %}", function(){load_shortcut_menu(); display_info("{% trans "Item pined in your shortcut menu." %}")});' title="{% trans 'Pin' %}"> <i class="fa fa-thumb-tack"></i> </a> {% block post_pin %} @@ -75,12 +75,13 @@ {% endif %} </div> + {% if not item.NO_ODTPDF_EXPORT or extra_templates %} <div class="btn-group btn-group-sm" role="group" aria-label="{% trans 'Export' %}"> <div class="btn btn-sm dropdown btn-secondary"> <a class="dropdown-toggle" type="button" id="dropdown-sheet-export-{{window_id}}" - data-toggle="dropdown"aria-haspopup="true" + data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-file-word-o"></i> {% trans "Export" %} </a> @@ -105,9 +106,8 @@ </a>{% endif %} </div> </div> - - </div> + {% endif %} </div> </div> {% if next %} |