{% extends 'liv_oahpa.html' %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} {% comment %} TODO: game logo TODO: link in user interface {% endcomment %} {% block page_class %}fixed{% endblock %} {% block content %} {# Add blocktrans and trans tags #}

{% trans 'Welcome' %}, {{ user.username }}!

{% if is_student %}

{% trans "Enrolled in…" %}

{% if new_profile %}

{% trans "You don't have any scores yet, go play some games!" %}

{% else %}

{% trans "The following scores represent your progress in the games available in Oahpa. Instructors will see your scores as shown below, but will also be able to see individual scores from every game. Good luck!" %}

{% comment %} {# OpenID not installed on site.uit.no yet #}

{% trans 'Site.uit.no login information' %}

{% endcomment %} {% load pretty_logs %}

{% trans "Course progress" %}

{% for summary in summaries %}
{% for a in summary.game.name|filter_log %}{{ a }}{% if not forloop.last %} - {% endif %}{% endfor %}
  • {% trans "Average" %} — {{ summary.average }}
  • {% trans "Highest score" %} — {{ summary.maximum }}
  • {% trans "Lowest score" %} — {{ summary.minimum }}
  • {% trans "Number of tries" %} — {{ summary.count }}
{% endfor %}
{% endif %} {% else %}

{% trans "You are a course instructor." %}

{% trans "View students' grades" %}

{% endif %}
{% endblock %}