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