Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ONE_GB to ONE_GIB #16209

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -80,11 +80,11 @@
</td>
<td>
{% if project.total_size_limit %}
{% set total_size_limit_value = project.total_size_limit // ONE_GB %}
{% set total_size_limit_value = project.total_size_limit // ONE_GIB %}
{% else %}
{% set total_size_limit_value = '' %}
{% endif %}
<input type="number" name="total_size_limit" id="totalSizeLimit" min="{{ MAX_PROJECT_SIZE // ONE_GB }}" value="{{total_size_limit_value}}"> GiB
<input type="number" name="total_size_limit" id="totalSizeLimit" min="{{ MAX_PROJECT_SIZE // ONE_GIB }}" value="{{total_size_limit_value}}"> GiB
</td>
<td>
<button type="submit" class="btn btn-primary btn-sm">Submit</button>
Expand Down