mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
9 lines
271 B
Django/Jinja
9 lines
271 B
Django/Jinja
{% from 'templates/error.jinja2' import error_class with context %}
|
|
{% if subcodes %}
|
|
from {{ base_class_module }} import {{ base_class_name }}
|
|
{% endif %}
|
|
{% for subcode, (name, msg) in subcodes %}
|
|
|
|
|
|
{{ error_class(name|cls_name, msg, code, subcode|int) -}}
|
|
{% endfor %} |