{% load i18n admin_urls %}
{% block object-tools-items %}
            {% url opts|admin_urlname:'add' as add_url %}
        <a href="{% add_preserved_filters add_url is_popup to_field %}" class="btn btn-outline-primary btn-flat ml-2">
            <i class="fas fa-plus-circle"></i>
            {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
        </a>


    {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}

    <a href="{% add_preserved_filters history_url %}" class="btn btn-outline-primary btn-flat ml-2"> <i class="fas fa-history"></i> {% trans "History" %}
    </a>

    {% if has_absolute_url %}
        <li><a href="{{ absolute_url }}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif %}
{% endblock %}
