Skip to content

Commit e169fda

Browse files
Fix indentation
1 parent a947d8d commit e169fda

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

templates/metadata.html.jinja

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,38 @@
33
{% block main %}
44
<table>
55
<thead>
6-
<tr>
7-
<th>language</th>
8-
<th>branch</th>
9-
<th>last updated</th>
10-
<th>build warnings*</th>
11-
<th>lint failures</th>
12-
</tr>
6+
<tr>
7+
<th>language</th>
8+
<th>branch</th>
9+
<th>last updated</th>
10+
<th>build warnings*</th>
11+
<th>lint failures</th>
12+
</tr>
1313
</thead>
1414
<tbody>
15-
{% for project, metadata in metadata | sort(attribute='0.completion') | reverse %}
16-
{% if project.repository %}
17-
<tr>
18-
<td data-label="language">{{ project.language.name }} ({{ project.language.code }})</td>
19-
<td data-label="branch">{{ project.branch }}</td>
20-
<td data-label="updated">{{ metadata[2].strftime('%Y/%m/%d %T') if metadata[2] else '' }}</td>
21-
<td data-label="warnings">
22-
{% if project.completion %}<a href="warnings-{{ project.language.code }}.txt">{{ metadata[0] }}</a>{% else %}{{ metadata[0] }}{% endif %}
23-
</td>
24-
<td data-label="lint">
25-
{% if project.completion %}<a href="warnings-lint-{{ project.language.code }}.txt">{{ metadata[1] }}</a>{% else %}{{ metadata[1] }}{% endif %}
26-
</td>
27-
</tr>
28-
{% endif %}
29-
{% endfor %}
15+
{% for project, metadata in metadata | sort(attribute='0.completion') | reverse %}
16+
{% if project.repository %}
17+
<tr>
18+
<td data-label="language">{{ project.language.name }} ({{ project.language.code }})</td>
19+
<td data-label="branch">{{ project.branch }}</td>
20+
<td data-label="updated">{{ metadata[2].strftime('%Y/%m/%d %T') if metadata[2] else '' }}</td>
21+
<td data-label="warnings">
22+
{% if project.completion %}
23+
<a href="warnings-{{ project.language.code }}.txt">{{ metadata[0] }}</a>
24+
{% else %}
25+
{{ metadata[0] }}
26+
{% endif %}
27+
</td>
28+
<td data-label="lint">
29+
{% if project.completion %}
30+
<a href="warnings-lint-{{ project.language.code }}.txt">{{ metadata[1] }}</a>
31+
{% else %}
32+
{{ metadata[1] }}
33+
{% endif %}
34+
</td>
35+
</tr>
36+
{% endif %}
37+
{% endfor %}
3038
</tbody>
3139
</table>
3240

0 commit comments

Comments
 (0)