Skip to content

Commit 15c018a

Browse files
committed
Use 'hash' instead of 'checksum'
1 parent b3d3b16 commit 15c018a

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

warehouse/static/js/warehouse/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ docReady(Statuspage);
6767

6868
// Copy handler for
6969
// - the pip command on package detail page
70-
// - the copy checksum on package detail page
71-
// - the copy checksum on release maintainers page
70+
// - the copy hash on package detail page
71+
// - the copy hash on release maintainers page
7272
docReady(() => {
7373
let setCopiedTooltip = (e) => {
7474
e.trigger.setAttribute("aria-label", "Copied!");
7575
e.clearSelection();
7676
};
7777

7878
new Clipboard(".-js-copy-pip-command").on("success", setCopiedTooltip);
79-
new Clipboard(".-js-copy-checksum").on("success", setCopiedTooltip);
79+
new Clipboard(".-js-copy-hash").on("success", setCopiedTooltip);
8080

8181
// Get all elements with class "tooltipped" and bind to focousout and
8282
// mouseout events. Change the "aria-label" to "original-label" attribute

warehouse/static/sass/blocks/_table.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -330,19 +330,19 @@
330330
}
331331
}
332332

333-
&--checksums {
333+
&--hashes {
334334
margin-top: $spacing-unit / 2;
335335

336336
.table__algorithm,
337-
.table__checksum {
337+
.table__hash {
338338
padding-right: 20px;
339339
}
340340

341341
td.table__algorithm {
342342
font-weight: 600;
343343
}
344344

345-
td.table__checksum {
345+
td.table__hash {
346346
word-break: break-all;
347347
}
348348

@@ -370,8 +370,8 @@
370370
}
371371

372372
.table__algorithm,
373-
.table__checksum,
374-
.table__copy {
373+
.table__copy,
374+
.table__hash {
375375
display: block;
376376
text-align: left;
377377
border-bottom: 0;

warehouse/templates/manage/release.html

+12-12
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ <h2 class="heading-wsubtitle__heading">Release Version {{ release.version }}</h2
7070
<i class="fa fa-download" aria-hidden="true"></i>
7171
Download
7272
</a>
73-
<a href="#copy-checksum-modal-{{ loop.index }}" class="dropdown__link">
73+
<a href="#copy-hash-modal-{{ loop.index }}" class="dropdown__link">
7474
<i class="fa fa-hashtag" aria-hidden="true"></i>
75-
View Checksums
75+
View Hashes
7676
</a>
7777
<a href="#delete-file-modal-{{ loop.index }}" class="dropdown__link">
7878
<i class="fa fa-trash" aria-hidden="true"></i>
@@ -169,46 +169,46 @@ <h3 class="modal__title">Delete {{ file.filename }}?</h3>
169169
</div>
170170
</div>
171171

172-
<div id="copy-checksum-modal-{{ loop.index }}" class="modal modal--wide">
172+
<div id="copy-hash-modal-{{ loop.index }}" class="modal modal--wide">
173173
<div class="modal__content" role="dialog">
174174
<a href="#modal-close" title="Close" class="modal__close">
175175
<i class="fa fa-times" aria-hidden="true"></i>
176176
<span class="sr-only">close</span>
177177
</a>
178178
<div class="modal__body">
179-
<h3 class="modal__title">Checksums for {{ file.filename }}</h3>
180-
<table class="table table--light table--checksums">
179+
<h3 class="modal__title">Hashes for {{ file.filename }}</h3>
180+
<table class="table table--light table--hashes">
181181
<thead>
182182
<tr>
183183
<th class="table__algorithm">Algorithm</th>
184-
<th class="table__checksum">Checksum</th>
184+
<th class="table__hash">Hash Digest</th>
185185
<th class="table__copy"></th>
186186
</tr>
187187
</thead>
188188
<tbody>
189189
<tr>
190190
<td class="table__algorithm">SHA256</td>
191-
<td class="table__checksum"><code>{{ file.sha256_digest }}</code></td>
191+
<td class="table__hash"><code>{{ file.sha256_digest }}</code></td>
192192
<td class="table__copy">
193-
<a class="button button--primary -js-copy-checksum tooltipped tooltipped-w" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.sha256_digest }}">
193+
<a class="button button--primary -js-copy-hash tooltipped tooltipped-w" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.sha256_digest }}">
194194
Copy
195195
</a>
196196
</td>
197197
</tr>
198198
<tr>
199199
<td class="table__algorithm">MD5</td>
200-
<td class="table__checksum"><code>{{ file.md5_digest }}</code></td>
200+
<td class="table__hash"><code>{{ file.md5_digest }}</code></td>
201201
<td class="table__copy">
202-
<a class="button button--primary -js-copy-checksum tooltipped tooltipped-w" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.md5_digest }}">
202+
<a class="button button--primary -js-copy-hash tooltipped tooltipped-w" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.md5_digest }}">
203203
Copy
204204
</a>
205205
</td>
206206
</tr>
207207
<tr>
208208
<td class="table__algorithm">BLAKE2-256</td>
209-
<td class="table__checksum"><code>{{ file.blake2_256_digest }}</code></td>
209+
<td class="table__hash"><code>{{ file.blake2_256_digest }}</code></td>
210210
<td class="table__copy">
211-
<a class="button button--primary -js-copy-checksum tooltipped tooltipped-w" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.blake2_256_digest }}">
211+
<a class="button button--primary -js-copy-hash tooltipped tooltipped-w" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.blake2_256_digest }}">
212212
Copy
213213
</a>
214214
</td>

warehouse/templates/packaging/detail.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ <h2 class="page-title">Download Files</h2>
291291
<thead>
292292
<tr>
293293
<th class="table__filename">
294-
File Name &amp; Checksum
294+
File Name &amp; Hash
295295
<a href="https://pip.pypa.io/en/stable/reference/pip_install/#hash-checking-mode" class="tooltipped tooltipped-n" aria-label="what's this?" data-original-label="what's this?">
296296
<i class="fa fa-question-circle" aria-hidden="true"></i>
297-
<span class="sr-only">SHA256 Checksum Help</span>
297+
<span class="sr-only">SHA256 Hash Help</span>
298298
</a>
299299
</th>
300300
<th class="table__version">Version</th>
@@ -311,9 +311,9 @@ <h2 class="page-title">Download Files</h2>
311311
</a>
312312
<br>
313313
{% if file.size %} ({{ file.size|filesizeformat() }}){% endif %}
314-
<a class="-js-copy-checksum table__sha256-link tooltipped tooltipped-s" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.sha256_digest }}">
314+
<a class="-js-copy-hash table__sha256-link tooltipped tooltipped-s" aria-label="Copy to clipboard" data-original-label="Copy to clipboard" data-clipboard-text="{{ file.sha256_digest }}">
315315
<i class="fa fa-copy" aria-hidden="true"></i>
316-
<span class="sr-only">Copy SHA256 Checksum</span>
316+
<span class="sr-only">Copy SHA256 Hash</span>
317317
SHA256
318318
</a>
319319
</td>

0 commit comments

Comments
 (0)