File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
warehouse/templates/api/simple Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 12
12
< h1 > Links for {{ name }}</ h1 >
13
13
{% for file in files -%}
14
14
< a href ="{{ file.url }}#sha256={{ file.hashes.sha256 }} "
15
- {% if file.get( 'requires-python') %}data-requires-python="{{ file['requires-python'] }} "{% endif %}
16
- {% if file.yanked %}data-yanked ="{% if file.yanked is string %}{{ file.yanked }}{% endif %}
17
- "
18
- {% endif %}
19
- {% if file[ 'core-metadata'] %}data-dist-info-metadata="sha256={{ file['core-metadata']['sha256'] }} " data-core-metadata ="sha256={{ file['core-metadata']['sha256'] }} "{% endif %}
20
- {% if file.get( 'provenance') %}data-provenance="{{ file['provenance'] }} "{% endif %} > {{ file.filename }}</ a >
21
- < br />
15
+ {% if file.get( 'requires-python') %}data-requires-python="{{ file['requires-python'] }} "{% endif %}
16
+ {% if file.yanked %}data-yanked ="{% if file.yanked is string %}{{ file.yanked }}{% endif %}
17
+ "
18
+ {% endif %}
19
+ {% if file[ 'core-metadata'] %}data-dist-info-metadata="sha256={{ file['core-metadata']['sha256'] }} " data-core-metadata ="sha256={{ file['core-metadata']['sha256'] }} "{% endif %}
20
+ {# djlint:off #}
21
+ {# TODO: Disabled is due to some clients not parsing **HTML**. See https: //github.com/pypi/warehouse/issues/18275 #}
22
+ {% if file.get('provenance') %}data-provenance="{{ file['provenance'] }} "{% endif %} > {{ file.filename }}</ a > < br />
23
+ {# djlint:on #}
22
24
{% endfor -%}
23
25
</ body >
24
26
</ html >
You can’t perform that action at this time.
0 commit comments