@@ -187,8 +187,12 @@ def distribution(project_name, version, first, second, rest, distname):
187
187
links = file_urls ,
188
188
h2 = f"{ project_name } " ,
189
189
h2_link = f"/project/{ project_name } " ,
190
+ h2_paren = "View this project on PyPI" ,
191
+ h2_paren_link = f"https://pypi.org/project/{ project_name } " ,
190
192
h3 = f"{ project_name } =={ version } " ,
191
193
h3_link = f"/project/{ project_name } /{ version } " ,
194
+ h3_paren = "View this release on PyPI" ,
195
+ h3_paren_link = f"https://pypi.org/project/{ project_name } /{ version } " ,
192
196
h4 = distname ,
193
197
h4_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /" , # noqa
194
198
)
@@ -212,12 +216,18 @@ def file(project_name, version, first, second, rest, distname, filepath):
212
216
return render_template (
213
217
"code.html" ,
214
218
code = contents ,
215
- h2 = f"{ project_name } =={ version } " ,
216
- h2_link = f"/project/{ project_name } /{ version } " ,
217
- h3 = distname ,
218
- h3_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /" , # noqa
219
- h4 = filepath ,
220
- h4_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /{ filepath } " , # noqa
219
+ h2 = f"{ project_name } " ,
220
+ h2_link = f"/project/{ project_name } " ,
221
+ h2_paren = "View this project on PyPI" ,
222
+ h2_paren_link = f"https://pypi.org/project/{ project_name } " ,
223
+ h3 = f"{ project_name } =={ version } " ,
224
+ h3_link = f"/project/{ project_name } /{ version } " ,
225
+ h3_paren = "View this release on PyPI" ,
226
+ h3_paren_link = f"https://pypi.org/project/{ project_name } /{ version } " ,
227
+ h4 = distname ,
228
+ h4_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /" , # noqa
229
+ h5 = filepath ,
230
+ h5_link = f"/project/{ project_name } /{ version } /packages/{ first } /{ second } /{ rest } /{ distname } /{ filepath } " , # noqa
221
231
)
222
232
else :
223
233
return "Distribution type not supported"
0 commit comments