NDOJ/templates/status/versions.html
2020-01-21 15:35:58 +09:00

42 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block title_ruler %}{% endblock %}
{% block title_row %}
{% set tab = 'matrix' %}
{% include "status/status-tabs.html" %}
{% endblock %}
{% block body %}
<table id="judge-versions" class="table">
<tr>
<th></th>
{% for judge in judges %}
<th>{{ judge }}</th>
{% endfor %}
</tr>
{% for language in languages %}
<tr>
<th>{{ language.name }}</th>
{% for judge in judges %}
{% set versions = matrix[judge][language.id] %}
<td class="version version-
{%- if not versions -%}
blank
{%- elif versions.is_latest -%}
latest
{%- else -%}
outdated
{%- endif %}">
{%- for version in versions -%}
{{ version.name }}{% if version.version %}&nbsp;{{ version.version }}{% endif %}
{% if not loop.last %}<br>{% endif %}
{%- else -%}
&mdash;
{%- endfor -%}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endblock %}