{# This snippet shows a row of a user_test table using the variable ut as input #} {% if shown_dataset is defined %} {% set dataset = shown_dataset %} {% else %} {% set dataset = ut.task.active_dataset %} {% endif %} {% set utr = ut.get_result(dataset) %} {# The user test result might be missing in some cases (e.g., cloned dataset); these cases are equivalent to the compiling state. #} {% set status = UserTestResult.COMPILING %} {% if utr is not none %} {% set status = utr.get_status() %} {% endif %} {{ ut.timestamp }} {{ ut.participation.user.username }} {{ ut.task.name }} {% if status == UserTestResult.COMPILING %} Compiling... {% else %}
{% if status == UserTestResult.COMPILATION_FAILED %} Compilation failed