{% extends "hkis/layout.html" %} {% load hkis_extra %} {% load i18n static %} {% block title %} {% if is_impersonating %} {{ object.title }} (as seen by {{ is_impersonating.username }}) {% else %} {{ object.title }} {% endif %} {% endblock %} {% block data %} {% get_current_language as LANGUAGE_CODE %} data-language-code="{{ LANGUAGE_CODE }}" data-leaderboard-url="{% url "leaderboard" %}" data-current-rank="{{ current_rank|default:999999 }}" data-exercise-id="{{object.id|default:0}}" {% url "auth_login" as auth_login %} {% if auth_login %} data-profile-url="{% if user.is_anonymous %}{{ auth_login }}{% else %}{% url "profile" user.id %}{% endif %}" data-auth-login-url="{{ auth_login }}" {% endif %} data-is-impersonating="{% if is_impersonating %}true{% else %}false{% endif %}" {% endblock %} {% block stylesheets %} {% endblock %} {% block container %} {% if is_impersonating %} {% endif %} {{ answer_form.media }}
{% csrf_token %}
{{ answer_form.source_code }}
{{ answer_form.exercise }}

{{ object.title }}

{% blocktrans with first_name=object.author.first_name last_name=object.author.last_name %}Created by {{ first_name }} {{ last_name }}{% endblocktrans %}
{{ object.wording|markdown_to_bootstrap }}

{% blocktrans %} There's no corrections yet, hit the `Submit` button to send your code to the correction bot. {% endblocktrans %}

{% trans "Keyboard shortcuts:" %}

  • {% blocktrans %}Ctrl-Enter: Send your code to the correction bot.{% endblocktrans %}
  • {% blocktrans %}Escape: Get back to the instructions tab.{% endblocktrans %}

{% if not is_impersonating %} {% endif %}
{% blocktrans %}See solutions{% endblocktrans %}
{% if previous %} {% endif %} {% if next %} {% endif %}
{% endblock %}