{% extends "layout/basic.html" %} {% block content %}

{{ _('Testdata') }}

{% if handler.user._id == pdoc.owner or handler.user.hasPerm(perm.PERM_EDIT_PROBLEM) %} {% endif %}
{{ noscript_note.render() }}
{% if testdata.length %} {%- for file in testdata -%} {%- endfor -%}
{{ _('Filename') }} {{ _('Size') }}
{{ file.name }} {{ size(file.size) }}
{% else %} {% if handler.user._id == pdoc.owner or handler.user.hasPerm(perm.PERM_READ_PROBLEM_DATA) %} {{ nothing.render('No testdata at current.') }} {% else %} {{ nothing.render("You don't have permission to read testdata.")}} {% endif %} {% endif %}
{% if handler.user._id == pdoc.owner or handler.user.hasPerm(perm.PERM_EDIT_PROBLEM) %} {% if testdata.length %}
{% endif %} {% endif %}

{{ _('Additional Files') }}

{% if handler.user._id == pdoc.owner or handler.user.hasPerm(perm.PERM_EDIT_PROBLEM) %} {% endif %}
{% if additional_file.length %} {%- for file in additional_file -%} {%- endfor -%}
{{ _('Filename') }} {{ _('Size') }}
{{ file.name }} {{ size(file.size) }}
{% else %} {{ nothing.render('No additional file at current.') }} {% endif %}
{% if additional_file.length %}
{% if handler.user._id == pdoc.owner or handler.user.hasPerm(perm.PERM_EDIT_PROBLEM) %} {% endif %}
{% endif %}
{% set owner_udoc = udoc %} {% include "partials/problem_sidebar.html" %}
{% endblock %}