15 lines
345 B
Django/Jinja
15 lines
345 B
Django/Jinja
{% from "gitea/map.jinja" import gitea with context %}
|
|
|
|
{%- for k,v in gitea.config.items() -%}
|
|
{%- if k == "global" %}
|
|
{%- for subkey,subval in v.items() -%}
|
|
{{ subkey|upper() }} = {{ subval }}
|
|
{% endfor -%}
|
|
{% else -%}
|
|
[{{ k }}]
|
|
{% for subkey,subval in v.items() -%}
|
|
{{ subkey|upper() }} = {{ subval }}
|
|
{% endfor -%}
|
|
{% endif %}
|
|
{%- endfor %}
|