@@ -66,10 +66,14 @@ def distributions(project_name, version):
66
66
return render_template (
67
67
"links.html" ,
68
68
links = dist_urls ,
69
- h2 = f"{ project_name } =={ version } " ,
70
- h2_link = f"/project/{ project_name } /{ version } " ,
71
- h2_paren = "View this release on PyPI" ,
72
- h2_paren_link = f"https://pypi.org/project/{ project_name } /{ version } " ,
69
+ h2 = f"{ project_name } " ,
70
+ h2_link = f"/project/{ project_name } " ,
71
+ h2_paren = "View this project on PyPI" ,
72
+ h2_paren_link = f"https://pypi.org/project/{ project_name } " ,
73
+ h3 = f"{ project_name } =={ version } " ,
74
+ h3_link = f"/project/{ project_name } /{ version } " ,
75
+ h3_paren = "View this release on PyPI" ,
76
+ h3_paren_link = f"https://pypi.org/project/{ project_name } /{ version } " ,
73
77
)
74
78
75
79
@@ -142,10 +146,12 @@ def distribution(project_name, version, first, second, rest, distname):
142
146
return render_template (
143
147
"links.html" ,
144
148
links = file_urls ,
145
- h2 = f"{ project_name } =={ version } " ,
146
- h2_link = f"/project/{ project_name } /{ version } " ,
147
- h3 = distname ,
148
- h3_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /" ,
149
+ h2 = f"{ project_name } " ,
150
+ h2_link = f"/project/{ project_name } " ,
151
+ h3 = f"{ project_name } =={ version } " ,
152
+ h3_link = f"/project/{ project_name } /{ version } " ,
153
+ h4 = distname ,
154
+ h4_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /" ,
149
155
)
150
156
else :
151
157
return "Distribution type not supported"
0 commit comments