{% extends "./page.html" %}
{% load i18n humanize aircox %}

{% block tag-class %}{{ block.super }} comment{% endblock %}
{% block tag-extra %} id="comment-{{ object.pk }}"{% endblock %}

{% block outer %}
{% with url=object.get_absolute_url %}
{% if with_title %}
        {{ block.super }}
        {{ block.super }}
{% else %}
    {{ block.super }}
    {{ block.super }}
{% endif %}
{% endwith %}
{% endblock %}


{% block title %}
    {{ object.nickname }} &mdash; {{ object.date }}
{% endblock %}

{% block subtitle %}
{% if with_title %}
    {{ object.parent.title }}
{% endif %}
{% endblock %}


{% block content %}{{ object.content }}{% endblock %}

{% block actions %}
{{ block.super }}

{% if request.user.is_staff %}
<a href="{% url "admin:aircox_comment_change" object.pk %}" class="button"
   title="{% trans "Edit comment" %}"
   aria-label="{% trans "Edit comment" %}">
    <span class="fa fa-edit"></span>
</a>
<a class="button is-danger"
   title="{% trans "Delete comment" %}"
   aria-label="{% trans "Delete comment" %}"
   href="{% url "admin:aircox_comment_delete" object.pk %}">
    <span class="fa fa-trash-alt"></span>
</a>

{# <a href="mailto:{{ object.email }}">{{ object.nickname }}</a> #}
{% endif %}
{% endblock %}
