Skip to content

Commit 2262bf3

Browse files
committed
Remove rel quick-download and add the download attribute to download buttons
1 parent 0a4bcd8 commit 2262bf3

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

pmaweb/templates/_dlbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{% with release.simpledownload as file %}
2-
<a class="btn btn-success download_popup" href="{{ file.get_absolute_url }}" title="Download {{ file.archive }} compressed release, {{ file.size | filesizeformat }}" rel="quick-download" data-sha256="{{ file.sha256 }}" data-pgp="{{ file.get_signed_url }}"><svg class="bi"><use href="#download"></use></svg> Download {{ release.version }}</a>
2+
<a class="btn btn-success download_popup" href="{{ file.get_absolute_url }}" title="Download {{ file.archive }} compressed release, {{ file.size | filesizeformat }}" data-sha256="{{ file.sha256 }}" data-pgp="{{ file.get_signed_url }}" download><svg class="bi"><use href="#download"></use></svg> Download {{ release.version }}</a>
33
{% endwith %}

pmaweb/templates/_dlrow.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<tr {% if file.is_featured %}class="featured-dl"{% endif %}>
22
{% if latest %}
3-
<td><a href="{{ file.get_stable_url }}" class="download_popup" data-sha256="{{ file.sha256 }}" data-pgp="{% if file.signed %}{{ file.get_stable_url }}.asc{% endif %}">{{ file.get_stable_filename }}</a></td>
3+
<td><a href="{{ file.get_stable_url }}" class="download_popup" title="Download {{ file.archive }} compressed release, {{ file.size | filesizeformat }}" data-sha256="{{ file.sha256 }}" data-pgp="{% if file.signed %}{{ file.get_stable_url }}.asc{% endif %}" download>{{ file.get_stable_filename }}</a></td>
44
{% else %}
5-
<td><a href="{{ file.get_absolute_url }}" class="download_popup" data-sha256="{{ file.sha256 }}" data-pgp="{{ file.get_signed_url }}">{{ file.filename }}</a></td>
5+
<td><a href="{{ file.get_absolute_url }}" class="download_popup" title="Download {{ file.archive }} compressed release, {{ file.size | filesizeformat }}" data-sha256="{{ file.sha256 }}" data-pgp="{{ file.get_signed_url }}" download>{{ file.filename }}</a></td>
66
{% endif %}
77
<td class="td-size">{{ file.size | filesizeformat }}</td>
88
<td>
99
{% if latest %}
1010
{% if file.signed %}
11-
[<a href="{{ file.get_stable_url }}.asc">PGP</a>]
11+
[<a href="{{ file.get_stable_url }}.asc" download>PGP</a>]
1212
{% endif %}
13-
[<a href="{{ file.get_stable_url }}.sha256">SHA256</a>]
13+
[<a href="{{ file.get_stable_url }}.sha256" download>SHA256</a>]
1414
{% else %}
1515
{% if file.signed %}
16-
[<a href="{{ file.get_signed_url }}">PGP</a>]
16+
[<a href="{{ file.get_signed_url }}" download>PGP</a>]
1717
{% endif %}
18-
[<a href="{{ file.get_checksum_url }}">SHA256</a>]
18+
[<a href="{{ file.get_checksum_url }}" download>SHA256</a>]
1919
{% endif %}
2020
</td>
2121
</tr>

pmaweb/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h1 class="modal-title fs-5" id="downloadModalLabel">Thank you for downloading p
103103
</div>
104104
<div class="modal-body">
105105
<p>
106-
Your download should start soon, if not please <a id="dl-link" href="">click here</a>.
106+
Your download should start soon, if not please <a id="dl-link" href="" download>click here</a>.
107107
</p>
108108

109109
<h4>Please verify the downloaded file</h4>
@@ -112,7 +112,7 @@ <h4>Please verify the downloaded file</h4>
112112
you can verify it using the following methods:
113113
</p>
114114
<ul>
115-
<li id="dl-li-pgp">Verify its <a id="dl-pgp" href="">PGP signature</a>, see the <a href="https://docs.phpmyadmin.net/en/latest/setup.html#verifying-phpmyadmin-releases">Verifying phpMyAdmin releases</a> chapter for more information.</li>
115+
<li id="dl-li-pgp">Verify its <a id="dl-pgp" href="" download>PGP signature</a>, see the <a href="https://docs.phpmyadmin.net/en/latest/setup.html#verifying-phpmyadmin-releases">Verifying phpMyAdmin releases</a> chapter for more information.</li>
116116
<li>Check that the file's SHA256 hash matches <code id="dl-sha256"></code></li>
117117
</ul>
118118

pmaweb/templates/files/release_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<p>Archive of phpMyAdmin releases, you can find currently supported versions <a href="{% url 'downloads' %}">on downloads page</a>.</p>
66

7-
<table class="table table-condensed table-striped">
7+
<table class="table table-condensed table-striped">
88
<thead>
99
<tr>
1010
<th>Release</th>
@@ -21,7 +21,7 @@
2121
<td>{{ object.date|date:"Y-m-d" }}</td>
2222
{% with object.simpledownload as file %}
2323
{% if file %}
24-
<td><a href="{{ file.get_absolute_url }}">{{ file.filename }}</a></td>
24+
<td><a href="{{ file.get_absolute_url }}" title="Download {{ file.archive }} compressed release, {{ file.size | filesizeformat }}" data-sha256="{{ file.sha256 }}" data-pgp="{{ file.get_signed_url }}" download>{{ file.filename }}</a></td>
2525
<td class="size">{{ file.size | filesizeformat }}</td>
2626
<td>
2727
{% if file.signed %}

0 commit comments

Comments
 (0)