-
-
Notifications
You must be signed in to change notification settings - Fork 672
allow white logos for pypi footer #2979
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Generated by Django 5.2.11 on 2026-04-06 18:04 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("sponsors", "0103_alter_benefitfeature_polymorphic_ctype_and_more"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="sponsor", | ||
| name="white_logo", | ||
| field=models.ImageField( | ||
| blank=True, | ||
| help_text="For display on dark backgrounds (e.g. PyPI footer). Transparent PNG, smallest dimension no less than 256px", | ||
| null=True, | ||
| upload_to="sponsor_white_logos", | ||
| verbose_name="White logo", | ||
| ), | ||
| ), | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -234,6 +234,18 @@ <h2>Sponsor Information</h2> | |
| {% endif %} | ||
|
Comment on lines
+222
to
226
|
||
| </p> | ||
|
|
||
| <p class="form_field"> | ||
| <label>{{ form.white_logo.label }} <span class="error-message">{% if form.white_logo.errors %} | ||
| {{ form.white_logo.errors.as_text }}</span>{% endif %}</label> | ||
| {% render_field form.white_logo %} | ||
| {% if sponsor.white_logo %} | ||
| <p>Currently: <a href="{{ sponsor.white_logo.url }}">{{ sponsor.white_logo.name }}</a></p> | ||
| {% endif %} | ||
| {% if form.white_logo.help_text %} | ||
| <span class="helptext">{{ form.white_logo.help_text }}</span> | ||
| {% endif %} | ||
|
Comment on lines
+234
to
+238
|
||
| </p> | ||
|
|
||
| <p class="form_field"> | ||
| <label>{{ form.print_logo.label }} <span class="error-message">{% if form.print_logo.errors %} | ||
| {{ form.print_logo.errors.as_text }}</span>{% endif %}</label> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.