{% load i18n admin_urls %}
{% block object-tools-items %}
    <li style="list-style-type: none;">
        {% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}
        <a href="{% add_preserved_filters history_url %}" class="historylink btn btn-sm btn-success">
            <i class="fa fa-book"></i>
            {% trans "History" %}
        </a>
    </li>

    {% if has_absolute_url %}
        <li style="list-style-type: none;">
            <a href="{{ absolute_url }}" class="viewsitelink">{% trans "View on site" %}</a>
        </li>
    {% endif %}
{% endblock %}
