<commit_before>{% extends "django_cradmin/base.django.html" %}
{% load i18n %}
{% load static %}
{% load cradmin_tags %}
{% load devilry_core_tags %}

{% block title %}
    {{ group.assignment }}
{% endblock title %}

{% block content %}
    <div class="page-header page-header-nomargin">
        <div class="container-fluid">
            <h1>
                {% include "devilry_student/cradmin_group/include/page-header-h1.django.html" %}
            </h1>
        </div>
    </div>
    <div class="container-fluid django-cradmin-container-fluid-focus
                devilry-student-groupoverview-{{ status }}
                {% if group.feedback.is_passing_grade %}
                    django-cradmin-container-fluid-focus-success
                    devilry-student-groupoverview-{{ status }}-passed
                {% else %}
                    django-cradmin-container-fluid-focus-warning
                    devilry-student-groupoverview-{{ status }}-failed
                {% endif %}
            ">
        {% if status == 'waiting-for-deliveries' %}
            {% trans "This assignment is open for deliveries." %}
            <a href="{% cradmin_instance_url 'deliveries' 'add-delivery' %}">{% trans "Add delivery" %}</a>.
        {% elif status == 'waiting-for-feedback' %}
            {% trans "Your assignment is waiting for feedback." %}
            {% if not group.assignment.deadline_handling_is_hard %}
                {% trans "The active deadline has expired, but this assignment is configured with soft deadines so you can still add deliveries." %}
                <a href="{% cradmin_instance_url 'deliveries' 'add-delivery' %}">{% trans "Add delivery" %}</a>.
            {% endif %}
        {% elif status == 'corrected' %}
            {% trans "This assignment is corrected, and the final grade is:" %}
            <strong>
                <a href="{% cradmin_instance_url 'deliveries' 'deliverydetails' pk=group.feedback.delivery_id %}">
                    {{ group.feedback|devilry_feedback_shortformat }}
                </a>
            </strong>
        {% elif status == 'closed-without-feedback' %}
            {% trans "Your assignment has been closed without feedback." %}
        {% endif %}
    </div>
{% endblock content %}
<commit_msg>student...cradmin_group.overview: Only style with warning/success when status is corrected.<commit_after>{% extends "django_cradmin/base.django.html" %}
{% load i18n %}
{% load static %}
{% load cradmin_tags %}
{% load devilry_core_tags %}

{% block title %}
    {{ group.assignment }}
{% endblock title %}

{% block content %}
    <div class="page-header page-header-nomargin">
        <div class="container-fluid">
            <h1>
                {% include "devilry_student/cradmin_group/include/page-header-h1.django.html" %}
            </h1>
        </div>
    </div>
    <div class="container-fluid django-cradmin-container-fluid-focus
                devilry-student-groupoverview-{{ status }}
                {% if status == 'corrected' %}
                    {% if group.feedback.is_passing_grade %}
                        django-cradmin-container-fluid-focus-success
                        devilry-student-groupoverview-{{ status }}-passed
                    {% else %}
                        django-cradmin-container-fluid-focus-warning
                        devilry-student-groupoverview-{{ status }}-failed
                    {% endif %}
                {% endif %}
            ">
        {% if status == 'waiting-for-deliveries' %}
            {% trans "This assignment is open for deliveries." %}
            <a href="{% cradmin_instance_url 'deliveries' 'add-delivery' %}">{% trans "Add delivery" %}</a>.
        {% elif status == 'waiting-for-feedback' %}
            {% trans "Your assignment is waiting for feedback." %}
            {% if not group.assignment.deadline_handling_is_hard %}
                {% trans "The active deadline has expired, but this assignment is configured with soft deadines so you can still add deliveries." %}
                <a href="{% cradmin_instance_url 'deliveries' 'add-delivery' %}">{% trans "Add delivery" %}</a>.
            {% endif %}
        {% elif status == 'corrected' %}
            {% trans "This assignment is corrected, and the final grade is:" %}
            <strong>
                <a href="{% cradmin_instance_url 'deliveries' 'deliverydetails' pk=group.feedback.delivery_id %}">
                    {{ group.feedback|devilry_feedback_shortformat }}
                </a>
            </strong>
        {% elif status == 'closed-without-feedback' %}
            {% trans "Your assignment has been closed without feedback." %}
        {% endif %}
    </div>
{% endblock content %}

{'fraction_non_alphanumeric': 0.13664202745512144, 'fraction_numerical': 0.0021119324181626186, 'mean_word_length': 2.0127226463104324, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2282348', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1242, 'n_words': 304}