{% macro category(name, description) -%}

{{ name }}

{{ description }}

{%- endmacro %} {% extends "layout.html" %} {% block head %} {{ super() }} {# Add htmx and hyperscript #} {% endblock %} {% block title %} {{ course.get_name(user_manager.session_language()) }} - {{ _("Settings") }} {% endblock %} {% block column %} {{ template_helper.call('course_admin_menu', course=course, current='settings/codingstyle') | safe }} {% endblock %} {% block navbar %} {% endblock %} {% block content %}

Coding Style Plugin Settings

{% if config_path and not config_writable %}
{% endif %}
{{ category( name="Configuration File", description="Define path of INGInious configuration file if not automatically detected." ) }}
{% if config_path %} {% set path = config_path.absolute() %} {% set placeholder = config_path.absolute() %} {% else %} {% set path = "" %} {% set placeholder = "/full/path/to/configuration.yaml"%}
Configuration File Not Found

Unable to locate INGInious configuration file. Please enter the full path of the file.

{% endif %}
{{ category( name="Weighted Mean", description="Toggle weighted mean grading and define weighting." ) }}
{# FIXME: how to get proper sizing of this input field? #}
{{ category("Grading Categories", "Add, remove, and modify grading categories.") }} {% for id, category in config.enabled.items() %}
{{ category.name }}
{% endfor %}
{{ category( name="Bars & Labels", description="Bar and label configuration for student task list page (/course/<courseid>)." | safe ) }} {% for id, bar in config.task_list_bars %}
Enabled
{% endfor %}
{{ category( name="Submission Sidebar", description="Information displayed in the sidebar of a student's submission (/submission/<submissionid>/codingstyle)." | safe ) }}
{{ category( name="Submission Query", description="Configuration of submission query page (/admin/<courseid>/submissions)." | safe ) }}

{# TODO: add "this course only" toggle for repair functions #}

Diagnose and Repair

This section provides diagnostics and repair tools that ensures all submissions are properly formatted and configured in the database for use with the plugin.

Warning

It is recommended to take a backup of submissions before attempting to modify or repair them.

Repair grades

Attempts to repair inconsistent and missing grades for all submissions.

Recalculate weighted mean grades

Recalculates weighted mean grades of all submissions.

This action should only be necessary if weighting has been manually modified in the configuration file. When changing weighting through the web interface, mean grades are automatically adjusted for all submissions.

{% endblock %}