Skip to content

Commit 9239962

Browse files
Handle no contribution link (#104)
Co-authored-by: Maciej Olko <[email protected]>
1 parent a0e5d79 commit 9239962

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

template.html.jinja

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ main | <a href="metadata.html" target="_self">meta</a>
2424
{% for project in completion_progress | sort(attribute='completion,translators.number') | reverse %}
2525
<tr>
2626
<td data-label="language">
27-
<a href="{{ project.contribution_link }}">{{ project.language.name }} ({{ project.language.code }})</a>
27+
{% if project.contribution_link %}
28+
<a href="{{ project.contribution_link }}">{{ project.language.name }} ({{ project.language.code }})</a>
29+
{% else %}
30+
{{ project.language.name }} ({{ project.language.code }})
31+
{% endif %}
2832
</td>
2933
<td data-label="build">
3034
{% if project.in_switcher %}

0 commit comments

Comments
 (0)