{% extends 'devilry_group/listbuilder_feedbackfeed/base_groupcomment_item_value.django.html' %}

{% load i18n %}
{% load cradmin_legacy_tags %}

{% block edit-links %}
    <a href="{% cradmin_url instanceid='devilry_group_student' appname='feedbackfeed' viewname='groupcomment-edit' pk=me.group_comment.id roleid=request.cradmin_role.id %}"
       class="devilry-group-comment-edit-link devilry-group-comment-edit-link__student">
        <strong>{% trans "Edit" context "devilry_group feedbackfeed edit groupcomment" %}</strong>
    </a>
{% endblock edit-links %}

{% block details %}
    {% if me.include_badge %}
        {% if me.group_comment.published_datetime > me.group_comment.feedback_set.current_deadline %}
            <div class="devilry-group-feedbackfeed-right-badge-field after-deadline-badge">
                <p class="devilry-group-feedbackfeed-badge-text">
                    {% trans "Not part of delivery" context 'devilry_group feedbackfeed' %}
                    <br>
                    <small>({% trans "after deadline" %})</small>
                </p>
            </div>
        {% endif %}
    {% endif %}
{% endblock details %}
