{% extends "django_cradmin/base.django.html" %} {% load i18n %}l {% load trix_admin_tags %} {% block content %}

{% trans "Aggregated statistics on how the assignments where solved" %}

{% for tag in selected_tags_list %} {% if tag != course_tag %} {% endif %} {{ tag }} {% endfor %} {% for tag in selectable_tags_list %} {{ tag }} {% endfor %}

{% trans "The stats below show how many percentage of the total number of users that have completed the assignment by their own, with help or not completed it." %}

  • {% trans "Number of users:" %} {{ user_count }}
  • {% trans "Number of assignments:" %} {{ assignment_count }}
  • {% if assignment_list.count %}
  • {% trans "Download csv file" %}
  • {% endif %}
{% for assignment in assignment_list %}

{{ assignment }}

{% compute_and_set_stats_for_assignment assignment 'bymyself' user_count as bymyself_percent %}

{% trans "Completed by their own" %} {{ bymyself_percent|floatformat:2 }} % {% include "trix_admin/include/progress_bar.django.html" with percent=bymyself_percent style='success' %}

{% compute_and_set_stats_for_assignment assignment 'withhelp' user_count as withhelp_percent %}

{% trans "Completed with help" %} {{ withhelp_percent|floatformat:2 }} % {% include "trix_admin/include/progress_bar.django.html" with percent=withhelp_percent style='warning'%}

{% compute_and_set_stats_for_assignment assignment 'notsolved' user_count as notsolved_percent %}

{% trans "Not completed" %} {{ notsolved_percent|floatformat:2 }} % {% include "trix_admin/include/progress_bar.django.html" with percent=notsolved_percent style='info'%}

{% empty %}

{% trans "There was no assignments matching the choosen tag" %}

{% endfor %} {% include "trix_student/include/pager.django.html" %}
{% comment %}

{% trans "Solved by their own" %} {{ bymyself_percent }}%

{% trans "Solved with help" %} {{ withhelp_percent }}%

{% trans "Not solved" %} {{ notsolved_percent }}%

{% endcomment %} {% endblock content %}