Skip to content

Commit a8f833f

Browse files
committed
Render files data
1 parent b250f03 commit a8f833f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

language.html.jinja

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<tbody>
2222
{% for directory in stats.stats_by_directory() %}
2323
<tr>
24-
<td>{{ directory.path.stem }}</td>
24+
<td>{{ directory.path.name }} ({{ directory.files_stats | length }})</td>
2525
<td data-label="completion">
2626
<div class="progress-bar" style="width: {{ directory.completion }}%;background-color: #4caf50;">
2727
{{ '{:.2f}%'.format(directory.completion) }}
@@ -31,6 +31,19 @@
3131
</div>
3232
</td>
3333
</tr>
34+
{% for file in directory.files_stats %}
35+
<tr>
36+
<td>{{ file.filename }}</td>
37+
<td data-label="completion">
38+
<div class="progress-bar" style="width: {{ file.percent_translated }}%;background-color: #4caf50;">
39+
{{ file.percent_translated }}%
40+
</div>
41+
<div class="progress-bar-outer-label">
42+
{{ file.percent_translated }}%
43+
</div>
44+
</td>
45+
</tr>
46+
{% endfor %}
3447
{% endfor %}
3548
</tbody>
3649
</table>

0 commit comments

Comments
 (0)