{% block tools %}
{% with absolute_url=result.obj.get_absolute_url %}
{% if not cl.is_popup and cl.model_admin.view_on_site and absolute_url %}
{% endif %}
{% endwith %}
{% if not cl.is_popup and result.has_view_permission and cl.model_admin.object_history %}
{% url cl.opts|admin_urlname:'history' result.obj.pk|admin_urlquote as history_url %}
{% endif %}
{% if result.has_delete_permission %}
{% url cl.opts|admin_urlname:'delete' result.obj.pk|admin_urlquote as delete_url %}
{% endif %}
{% endblock %}