{% extends "hkis/layout.html" %} {% load hkis_extra %} {% load i18n static %} {% block title %}{{ object.title }}{% endblock %} {% block data %} data-csrf-token="{{ csrf_token }}" {% endblock %} {% block stylesheets %} {% endblock %} {% block extrajs %} {% endblock %} {% block container %}

{% trans "Solutions for exercise:" %} {{ exercise.title }}

{% trans "Shared solutions" %}

{% if is_solved %} {% if solutions %}
{% for solution in solutions %}

{% blocktrans with username=solution.user.username date=solution.created_at.date %}Solution shared by {{ username }} on {{ date }}:{% endblocktrans %}

{% endfor %}
{% else %} {% trans "No solution shared yet :(" %} {% endif %} {% else %} {% trans "(You're not allowed to see them until you resolved the exercise.)" %} {% endif %}

{% trans "My answers" %}

{% if not my_answers %} {% trans "You haven't submitted anything for this exercise yet." %} {% else %}
{% for solution in my_answers %}

{% blocktrans with date=solution.created_at.date %}Submitted on {{ date }}:{% endblocktrans %}

{{ solution.correction_message }}
{% if solution.is_valid %} {% endif %}
{% endfor %}
{% endif %} {% endblock %}