online-judge/templates/runtime-version-fragment.html
2017-12-06 04:46:20 -05:00

13 lines
376 B
HTML

{% for name, versions in runtime_versions -%}
{%- if versions -%}
{%- if versions[0] != versions|last -%}
{{ name }} {{ versions[0] }} - {{ versions|last }}
{%- else -%}
{{ name }} {{ versions[0] }}
{%- endif -%}
{%- else -%}
{{ name }}
{%- endif -%}
{%- if not loop.last %}, {% endif -%}
{%- endfor -%}