NDOJ/templates/status/versions.html

43 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
{% 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 %}