|
1 | 1 | {% extends "base.html.jinja" %} |
2 | 2 |
|
3 | 3 | {% block main %} |
4 | | - <div> |
5 | | - <div class="row"> |
6 | | - {% for project in completion_progress | sort(attribute='completion') | reverse %} |
7 | | - <div class="col-12 col-sm-6 col-md-4 d-flex"> |
8 | | - <div class="card shadow mb-3 w-100"> |
9 | | - <div class="card-body"> |
10 | | - <h3 class="card-title">{{ project.language.name }}</h3> |
11 | | - <h5 class="card-subtitle mb-2 text-muted">{{ project.translated_name }}</h5> |
12 | | - <p class="text-muted">Completion: <strong>{{ '{:.2f}%'.format(project.completion) }}</strong></p> |
13 | | - <p class="text-muted">30-day progress: {{ '{:.2f}%'.format(project.change) }}</p> |
14 | | - <p style="text-align: center;"> |
15 | | - {% if project.built %} |
16 | | - <a href="https://docs.python.org/{{ project.language.code }}/3/" style="color: #1595fe;">View</a> |
17 | | - • |
18 | | - {% endif %} |
19 | | - {% if project.contribution_link %} |
20 | | - <a href="{{ project.contribution_link }}" style="color: #1595fe;">Contribute</a> |
21 | | - {% elif project.uses_platform %} |
22 | | - <a href="https://app.transifex.com/join/?o=python-doc&p=python-newest&t=opensource" style="color: #1595fe;">Contribute</a> |
23 | | - {% else %} |
24 | | - <a href="https://devguide.python.org/documentation/translations/translating/" style="color: #1595fe;">Contribute</a> |
25 | | - {% endif %} |
26 | | - </p> |
27 | | - <div class="progress-bar-container"> |
28 | | - <div class="progress-bar-index" style="width: {{ project.completion }}%; |
29 | | - {% if project.change %} |
30 | | - background: linear-gradient(to left, #94cf96 {{ project.change * 100 / project.completion }}%, #4caf50 {{ project.change * 100 / project.completion }}%); |
31 | | - {% else %} |
32 | | - background-color: #4caf50; |
33 | | - {% endif %}"> |
34 | | - </div> |
35 | | - </div> |
| 4 | +<div> |
| 5 | + <div class="row"> |
| 6 | + {% for project in completion_progress | sort(attribute='completion') | reverse %} |
| 7 | + <div class="col-12 col-sm-6 col-md-4 d-flex"> |
| 8 | + <div class="card shadow mb-3 w-100"> |
| 9 | + <div class="card-body"> |
| 10 | + <h3 class="card-title">{{ project.language.name }}</h3> |
| 11 | + <h5 class="card-subtitle mb-2 text-muted">{{ project.translated_name }}</h5> |
| 12 | + <p class="text-muted">Completion: <strong>{{ '{:.2f}%'.format(project.completion) }}</strong></p> |
| 13 | + <p class="text-muted">30-day progress: {{ '{:.2f}%'.format(project.change) }}</p> |
| 14 | + |
| 15 | + <p style="text-align: center;"> |
| 16 | + {% if project.built %} |
| 17 | + <a href="https://docs.python.org/{{ project.language.code }}/3/" style="color: #1595fe;">View</a> |
| 18 | + • |
| 19 | + {% endif %} |
| 20 | + {% if project.contribution_link %} |
| 21 | + <a href="{{ project.contribution_link }}" style="color: #1595fe;">Contribute</a> |
| 22 | + {% elif project.uses_platform %} |
| 23 | + <a href="https://app.transifex.com/join/?o=python-doc&p=python-newest&t=opensource" style="color: #1595fe;">Contribute</a> |
| 24 | + {% else %} |
| 25 | + <a href="https://devguide.python.org/documentation/translations/translating/" style="color: #1595fe;">Contribute</a> |
| 26 | + {% endif %} |
| 27 | + </p> |
| 28 | + <div class="progress-bar-container"> |
| 29 | + <div class="progress-bar" style="width: {{ project.completion }}%; |
| 30 | + {% if project.change %} |
| 31 | + background: linear-gradient(to left, #94cf96 {{ project.change * 100 / project.completion }}%, #4caf50 {{ project.change * 100 / project.completion }}%); |
| 32 | + {% else %} |
| 33 | + background-color: #4caf50; |
| 34 | + {% endif %}"> |
36 | 35 | </div> |
37 | 36 | </div> |
38 | 37 | </div> |
39 | | - {% endfor %} |
| 38 | + </div> |
40 | 39 | </div> |
41 | | - </div> |
| 40 | + {% endfor %} |
| 41 | + </div> |
| 42 | +</div> |
42 | 43 |
|
43 | | - <p style="text-align: center;"> |
44 | | - Last updated {{ generation_time.strftime('on %A %-d %B %Y at %-H:%M:%S %Z') }} (in {{ duration // 60 }} minutes and {{ duration % 60 }} seconds).<br/> |
45 | | - You can find the scripts used to generate this website <a href="https://github.com/python-docs-translations/dashboard/">on GitHub</a>.<br/> |
46 | | - You can download the data on this page in <a href="https://raw.githubusercontent.com/python-docs-translations/dashboard/refs/heads/gh-pages/index.json">JSON format</a>. |
47 | | - </p> |
| 44 | +<p style="text-align: center;"> |
| 45 | + Last updated {{ generation_time.strftime('on %A %-d %B %Y at %-H:%M:%S %Z') }} (in {{ duration // 60 }} minutes and {{ duration % 60 }} seconds).<br/> |
| 46 | + You can find the scripts used to generate this website <a href="https://github.com/python-docs-translations/dashboard/">on GitHub</a>.<br/> |
| 47 | + You can download the data on this page in <a href="https://raw.githubusercontent.com/python-docs-translations/dashboard/refs/heads/gh-pages/index.json">JSON format</a>. |
| 48 | +</p> |
48 | 49 | {% endblock %} |
0 commit comments