|
2 | 2 | <svg
|
3 | 3 | xmlns="http://www.w3.org/2000/svg"
|
4 | 4 | class="release-cycle-chart"
|
5 |
| - viewBox="0 0 {{diagram_width * SCALE}} {{diagram_height * SCALE}}" |
| 5 | + viewBox="0 0 {{ diagram_width * SCALE }} {{ diagram_height * SCALE }}" |
6 | 6 | >
|
7 | 7 |
|
8 | 8 | {% for version in versions %}
|
|
13 | 13 | <rect
|
14 | 14 | class="release-cycle-row-shade"
|
15 | 15 | x="0em"
|
16 |
| - y="{{(y - 1.125) * SCALE}}" |
17 |
| - width="{{diagram_width * SCALE}}" |
18 |
| - height="{{LINE_HEIGHT * SCALE}}" |
| 16 | + y="{{ (y - 1.125) * SCALE }}" |
| 17 | + width="{{ diagram_width * SCALE }}" |
| 18 | + height="{{ LINE_HEIGHT * SCALE }}" |
19 | 19 | />
|
20 | 20 | {% endif %}
|
21 | 21 | {% endfor %}
|
22 | 22 |
|
23 | 23 | {% for year in years %}
|
24 | 24 | <text
|
25 | 25 | class="release-cycle-year-text"
|
26 |
| - x="{{(year_to_x(year) + year_to_x(year+1)) / 2 * SCALE}}" |
27 |
| - y="{{(diagram_height - LINE_HEIGHT) * SCALE}}" |
28 |
| - font-size="{{SCALE * 0.75}}" |
| 26 | + x="{{ (year_to_x(year) + year_to_x(year + 1)) / 2 * SCALE }}" |
| 27 | + y="{{ (diagram_height - LINE_HEIGHT) * SCALE }}" |
| 28 | + font-size="{{ SCALE * 0.75 }}" |
29 | 29 | text-anchor="middle"
|
30 | 30 | >
|
31 | 31 | {{ format_year(year) }}
|
32 | 32 | </text>
|
33 | 33 | <line
|
34 | 34 | class="release-cycle-year-line"
|
35 |
| - x1="{{year_to_x(year+1) * SCALE}}" |
36 |
| - x2="{{year_to_x(year+1) * SCALE}}" |
| 35 | + x1="{{ year_to_x(year + 1) * SCALE }}" |
| 36 | + x2="{{ year_to_x(year + 1) * SCALE }}" |
37 | 37 | y1="0"
|
38 |
| - y2="{{(diagram_height - LINE_HEIGHT) * SCALE}}" |
39 |
| - font-size="{{SCALE}}" |
| 38 | + y2="{{ (diagram_height - LINE_HEIGHT) * SCALE }}" |
| 39 | + font-size="{{ SCALE }}" |
40 | 40 | />
|
41 | 41 | {% endfor %}
|
42 | 42 |
|
|
46 | 46 | <!-- Legend on the left -->
|
47 | 47 | <text
|
48 | 48 | class="release-cycle-version-label"
|
49 |
| - x="{{0.5 * SCALE}}" |
50 |
| - y="{{y * SCALE}}" |
51 |
| - font-size="{{SCALE}}" |
| 49 | + x="{{ 0.5 * SCALE }}" |
| 50 | + y="{{ y * SCALE }}" |
| 51 | + font-size="{{ SCALE }}" |
52 | 52 | >
|
53 |
| - Python {{version.key}} |
| 53 | + Python {{ version.key }} |
54 | 54 | </text>
|
55 | 55 |
|
56 | 56 | <!-- Colourful blob with a label -->
|
57 | 57 | {% set start_x = date_to_x(version.first_release_date) %}
|
58 | 58 | {% set end_x = date_to_x(version.end_of_life_date) %}
|
59 | 59 | {% set mid_x = (start_x + end_x) / 2 %}
|
60 | 60 | <rect
|
61 |
| - class="release-cycle-blob release-cycle-blob-{{version.status}}" |
62 |
| - x="{{start_x * SCALE}}" |
63 |
| - y="{{(y - 1) * SCALE}}" |
64 |
| - width="{{(end_x - start_x) * SCALE}}" |
65 |
| - height="{{1.25 * SCALE}}" |
| 61 | + class="release-cycle-blob release-cycle-blob-{{ version.status }}" |
| 62 | + x="{{ start_x * SCALE }}" |
| 63 | + y="{{ (y - 1) * SCALE }}" |
| 64 | + width="{{ (end_x - start_x) * SCALE }}" |
| 65 | + height="{{ 1.25 * SCALE }}" |
66 | 66 | rx="0.25em"
|
67 | 67 | ry="0.25em"
|
68 | 68 | />
|
69 | 69 | <text
|
70 |
| - class="release-cycle-blob-label release-cycle-blob-{{version.status}}" |
71 |
| - x="{{mid_x * SCALE}}" |
72 |
| - y="{{(y - 0.1) * SCALE}}" |
73 |
| - font-size="{{SCALE * 0.75}}" |
| 70 | + class="release-cycle-blob-label release-cycle-blob-{{ version.status }}" |
| 71 | + x="{{ mid_x * SCALE }}" |
| 72 | + y="{{ (y - 0.1) * SCALE }}" |
| 73 | + font-size="{{ SCALE * 0.75 }}" |
74 | 74 | text-anchor="middle"
|
75 | 75 | >
|
76 |
| - {{version.status}} |
| 76 | + {{ version.status }} |
77 | 77 | </text>
|
78 | 78 | {% endfor %}
|
79 | 79 |
|
80 | 80 | <!-- A line for today -->
|
81 | 81 | <line
|
82 | 82 | class="release-cycle-today-line"
|
83 |
| - x1="{{date_to_x(today) * SCALE}}" |
84 |
| - x2="{{date_to_x(today) * SCALE}}" |
| 83 | + x1="{{ date_to_x(today) * SCALE }}" |
| 84 | + x2="{{ date_to_x(today) * SCALE }}" |
85 | 85 | y1="0"
|
86 |
| - y2="{{(diagram_height - LINE_HEIGHT) * SCALE}}" |
87 |
| - font-size="{{SCALE}}" |
| 86 | + y2="{{ (diagram_height - LINE_HEIGHT) * SCALE }}" |
| 87 | + font-size="{{ SCALE }}" |
88 | 88 | />
|
89 | 89 | </svg>
|
0 commit comments