{% extends "cradmin_legacy/base.django.html" %} {% load i18n %} {% load trix_core_tags %} {% load trix_admin_tags %} {% load cradmin_legacy_tags %} {% block title %}{% trans "Statistics" %}{% endblock %} {% block pageheader-inner %}

{% trans "Statistics" %}

{% endblock pageheader-inner %} {% 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 %}

{% blocktrans %} 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. {% endblocktrans %}

  • {% trans "Number of users:" %} {{ user_count }}
  • {% trans "Number of assignments:" %} {{ assignment_count }}
  • {% if assignment_list.count %}
  • {% trans "Download csv file" %}
  • {% endif %}
{% if request.GET.ordering %} {% endif %} {% if request.GET.tags %} {% endif %}
{% for name, order in selectable_sort_list %} {% order_in_use order sort_list as is_negative %} {{ name }} {% endfor %}
{% for assignment in assignment_list %}

{{ assignment }}

{% for tag in assignment.tags.all %} {% endfor %}

{{ assignment.id }}

{% compute_and_set_stats_for_assignment assignment 'bymyself' user_count from_date to_date as bymyself %}

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

{% compute_and_set_stats_for_assignment assignment 'withhelp' user_count from_date to_date as withhelp %}

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

{% compute_and_set_stats_for_assignment assignment 'notsolved' user_count from_date to_date as notsolved %}

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


{% empty %}

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

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