{% extends "layout.html" %} {% block head %} {{ super() }} {# Add htmx #} {% endblock %} {% block column %} {{ super() }}

{{ _("Information") }}

{% if submission.custom.coding_style_grades %} {% endif %}
Submission author(s) {% for author in authors %}

{{ author }}

{% endfor %}
Task {{ task.get_name(user_manager.session_language()) }}
Submitted {{ submitted_on }}
Mean style grade {{grades.get_mean(config)}} / 100
{% if submission.custom.coding_style_grades %}
{% endif %} {% endblock %} {% block navbar %} {% endblock %} {% block content %} {%- if success is not none -%} {%- if success == '1' -%} {% else %} {% endif %} {%- endif %}

Coding Style Grading

Add grades to each category and optionally give feedback.


{% for id, grade in grades.grades.items() %} {% if loop.index0 % 2 == 0 -%}
{% endif %}

{%- if id in config.enabled -%} {#- Prefer showing up-to-date name -#} {{ config.enabled[id].name }} {%- else -%} {#- Fall back on name stored in existing grade -#} {% set disabled = True %} {{ grade.name }} (disabled) {%- endif -%}

{%- if disabled -%} {#- Show button to remove disabled category -#} {%- endif -%}

{%- if id in config.enabled -%} {{ config.enabled[id].description }} {%- else -%} {{ grade.description }} {%- endif -%}

{%- if disabled -%} NOTE: This category has been disabled and will not contribute to the submission's grade. {% endif %}
{% if loop.index % 2 == 0 or loop.last -%}
{%- endif -%} {% endfor %}
{% if grades %}

Average:

{{grades.get_mean(config)}}

{% endif %}
{% endblock %}