Skip to content

Commit

Permalink
Update admin template to use ONE_MIB (#16208)
Browse files Browse the repository at this point in the history
  • Loading branch information
di authored Jul 2, 2024
1 parent 16c9bce commit 679dd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warehouse/admin/templates/admin/projects/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
</td>
<td>
{% if project.upload_limit %}
{% set upload_limit_value = project.upload_limit / ONE_MB %}
{% set upload_limit_value = project.upload_limit / ONE_MIB %}
{% else %}
{% set upload_limit_value = '' %}
{% endif %}
<input type="number" name="upload_limit" id="uploadLimit" min="{{ MAX_FILESIZE / ONE_MB }}" max="{{ UPLOAD_LIMIT_CAP / ONE_MB }}" step=1 value="{{ upload_limit_value|int }}"> MiB
<input type="number" name="upload_limit" id="uploadLimit" min="{{ MAX_FILESIZE / ONE_MIB }}" max="{{ UPLOAD_LIMIT_CAP / ONE_MIB }}" step=1 value="{{ upload_limit_value|int }}"> MiB
</td>
<td>
<button type="submit" class="btn btn-primary btn-sm">Submit</button>
Expand Down

0 comments on commit 679dd63

Please sign in to comment.