{% if tr is not none and tr.evaluated() %}

{% trans %}Evaluation outcome{% endtrans %}

{# TODO: trim long outputs and add facility to see raw #}
{{ tr.evaluation_text|format_status_text }}
{% endif %} {% if tr is not none and tr.compiled() %}

{% trans %}Compilation output{% endtrans %}

{# TODO: trim long outputs and add facility to see raw #}
{% trans %}Compilation outcome:{% endtrans %} {{ tr.compilation_text|format_status_text }}
{% trans %}Compilation time:{% endtrans %} {% if tr.compilation_time is none %} {% trans %}N/A{% endtrans %} {% else %} {{ tr.compilation_time|format_duration }} {% endif %}
{% trans %}Memory used:{% endtrans %} {% if tr.compilation_memory is none %} {% trans %}N/A{% endtrans %} {% else %} {{ tr.compilation_memory|format_size }} {% endif %}
{% if tr.compilation_stdout is not none %}

{% trans %}Standard output{% endtrans %}

{{ tr.compilation_stdout }}
{% endif %} {% if tr.compilation_stderr is not none %}

{% trans %}Standard error{% endtrans %}

{{ tr.compilation_stderr }}
{% endif %} {% endif %}