page: put all secondary actions in a menu (#24526)

This commit is contained in:
Lauréline Guérin 2019-10-22 11:50:16 +02:00
parent 7da07bbf2b
commit 6c9803d241
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 6 additions and 3 deletions

View File

@ -6,10 +6,13 @@
{% block appbar %}
<h2>{% trans 'Page' %} - {{ object.title }}</h2>
<span class="actions">
<a class="extra-actions-menu-opener"></a>
<a href="{{ object.get_online_url }}">{% trans 'see online' %}</a>
<a href="{% url 'combo-manager-page-history' pk=object.id %}">{% trans 'history' %}</a>
<a download href="{% url 'combo-manager-page-export' pk=object.id %}">{% trans 'export' %}</a>
<a rel="popup" href="{% url 'combo-manager-page-delete' pk=object.id %}">{% trans 'delete' %}</a>
<ul class="extra-actions-menu">
<li><a href="{% url 'combo-manager-page-history' pk=object.id %}">{% trans 'history' %}</a></li>
<li><a download href="{% url 'combo-manager-page-export' pk=object.id %}">{% trans 'export' %}</a></li>
<li><a rel="popup" href="{% url 'combo-manager-page-delete' pk=object.id %}">{% trans 'delete' %}</a></li>
</ul>
</span>
{% endblock %}