Skip to content

Commit ae763dc

Browse files
committed
Don't link to Plausible when no build
1 parent 00279a4 commit ae763dc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

template.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ <h1>Python Docs Translation Dashboard</h1>
3535
{% endif %}
3636
</td>
3737
<td data-label="visitors">
38-
<a href="https://plausible.io/docs.python.org?filters=((contains,page,(/{{ language }}/)))" target="_blank">
39-
{{ '{:,}'.format(visitors) }}
40-
</a>
38+
{% if build %}
39+
<a href="https://plausible.io/docs.python.org?filters=((contains,page,(/{{ language }}/)))" target="_blank">
40+
{{ '{:,}'.format(visitors) }}
41+
</a>
42+
{% else %}
43+
0
44+
{% endif %}
4145
</td>
4246
<td data-label="translators">{{ translators }}</td>
4347
<td data-label="completion">

0 commit comments

Comments
 (0)