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

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

{% 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 }}

{% with assignment|compute_stats:'bymyself' as bymyself_percent %}

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

{% endwith %} {% with assignment|compute_stats:'withhelp' as withhelp_percent %}

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

{% endwith %} {% with assignment|compute_stats:'notsolved' as notsolved_percent %}

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

{% endwith %}
{% 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 %}