Skip to content

Commit 2c3c073

Browse files
authoredAug 16, 2022
Address immediate sponsorship feedback (#2127)
* Display all Packages/Years together in sponsor-list. Fixes #2124 * Resolve #2125
1 parent 96b28c9 commit 2c3c073

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed
 

‎sponsors/models/sponsorship.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class SponsorshipBenefit(OrderedModel):
404404
package_only = models.BooleanField(
405405
default=False,
406406
verbose_name="Sponsor Package Only Benefit",
407-
help_text="If a benefit is only available via a sponsorship package, select this option.",
407+
help_text="If a benefit is only available via a sponsorship package and not as an add-on, select this option.",
408408
)
409409
new = models.BooleanField(
410410
default=False,

‎sponsors/templatetags/sponsors.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ def list_sponsors(logo_place, publisher=PublisherChoices.FOUNDATION.value):
4141
if logo_place == LogoPlacementChoices.SPONSORS_PAGE.value:
4242
sponsorships_by_package = OrderedDict()
4343
for pkg in packages:
44-
sponsorships_by_package[pkg] = {
44+
sponsorships_by_package[pkg.slug] = {
45+
"label": pkg.name,
4546
"logo_dimension": str(pkg.logo_dimension),
4647
"sponsorships": [
4748
sp
4849
for sp in sponsorships
49-
if sp.package == pkg
50+
if sp.package.slug == pkg.slug
5051
]
5152
}
5253

‎templates/sponsors/partials/sponsors-list.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ <h3 class="widget-title">Job Board Sponsors</h3>
3636

3737
{% for package, placement_info in sponsorships_by_package.items %}
3838
{% if placement_info.sponsorships %}
39-
<div title="{{ package.name }} Sponsors" align="center">
39+
<div title="{{ package }} Sponsors" align="center">
4040
{% with dimension=placement_info.logo_dimension %}
4141

42-
<h1 style="font-size: {% if forloop.first %}350%{% else %}300%{% endif %}">{{ package }} Sponsors</h1>
42+
<h1 style="font-size: {% if forloop.first %}350%{% else %}300%{% endif %}">{{ placement_info.label }} Sponsors</h1>
4343

4444
<div style="display: grid; grid-gap: 2em; grid-template-columns: repeat(auto-fit, minmax({{ dimension }}px, 0fr)); grid-template-rows: repeat(1, minmax({{ dimension }}px, 0fr)); align-items: center; justify-content: center;">
4545
{% for sponsorship in placement_info.sponsorships %}
46-
<div id="{{ sponsorship.sponsor.slug }}">
46+
<div id="{{ sponsorship.sponsor.slug }}" data-internal-year={{ sponsorship.year }}>
4747
<div
4848
data-ea-publisher="psf"
4949
data-ea-type="psf-image-only"

‎templates/sponsors/sponsorship_benefits_form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h4 class="benefit-title">{{ benefit.name }}</h4>
139139
data-initial-state="{% static 'img/sponsors/tick-placeholder.png' %}"
140140
/>
141141
<br/>
142-
<small>Potential a la carte</small>
142+
<small>Potential add-on</small>
143143
{% endif %}
144144
{% if benefit.has_tiers %}
145145
<div><small>{% benefit_quantity_for_package benefit package %}</small></div>

0 commit comments

Comments
 (0)