Skip to content

Commit d86688e

Browse files
committed
Add back mising sponsor and implement skip from sponsors page
After checking 35a9f3f was missing on the sponsors page, but it was per request.
1 parent e8bd19b commit d86688e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

data/sponsors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
'diamond': [],
2727
'platinum': [],
2828
'gold': [
29+
{ 'url': 'https://www.vapehuset.se/', 'logo': 'vapehuset.png', 'name': 'Vapehuset', 'sponsorList': 'skip'},
2930
{ 'url': 'https://www.4kdownload.com/', 'logo': '4kdownload.png', 'name': '4K Download'},
3031
{ 'url': 'https://vape.se/', 'logo': 'vape.png', 'name': 'Vape.se'},
3132
{ 'url': 'https://superviral.io', 'logo': 'superviral.png', 'name': 'Superviral.io'},

pmaweb/templates/_sponsor.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{% if isList == True and sponsor.sponsorList and sponsor.sponsorList == 'skip' %}
2+
{% else %}
13
{% load static %}
24
{% if sponsor.logo %}
35
<div class="logos">
@@ -6,3 +8,4 @@
68
{% else %}
79
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}>{{ sponsor.name }}</a>
810
{% endif %}
11+
{% endif %}

pmaweb/templates/_sponsors.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h3>Diamond sponsor{% if sponsors.diamond|length > 1 %}s{% endif %}</h3>
1212

1313
{% for sponsor in sponsors.diamond %}
1414
<div class="sp diamond">
15-
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
15+
{% include '_sponsor.html' with isList=False %}
1616
</div>
1717
{% endfor %}
1818
</div>
@@ -23,7 +23,7 @@ <h3>Platinum sponsor{% if sponsors.platinum|length > 1 %}s{% endif %}</h3>
2323

2424
{% for sponsor in sponsors.platinum %}
2525
<div class="sp platinum">
26-
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
26+
{% include '_sponsor.html' with isList=False %}
2727
</div>
2828
{% endfor %}
2929

@@ -33,7 +33,7 @@ <h3>Gold sponsor{% if sponsors.gold|length > 1 %}s{% endif %}</h3>
3333

3434
{% for sponsor in sponsors.gold %}
3535
<div class="sp gold">
36-
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
36+
{% include '_sponsor.html' with isList=False %}
3737
</div>
3838
{% endfor %}
3939

pmaweb/templates/sponsors.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,38 @@ <h3>Diamond sponsor</h3>
1616
{% endif %}
1717

1818
{% for sponsor in sponsors.diamond %}
19-
{% include '_sponsor.html' %}
19+
{% include '_sponsor.html' with isList=True %}
2020
{% endfor %}
2121

2222
{% if sponsors.platinum|length > 0 %}
2323
<h3>Platinum sponsor{% if sponsors.platinum|length > 1 %}s{% endif %}</h3>
2424
{% endif %}
2525

2626
{% for sponsor in sponsors.platinum %}
27-
{% include '_sponsor.html' %}
27+
{% include '_sponsor.html' with isList=True %}
2828
{% endfor %}
2929

3030
{% if sponsors.gold|length > 0 %}
3131
<h3>Gold sponsor{% if sponsors.gold|length > 1 %}s{% endif %}</h3>
3232
{% endif %}
3333

3434
{% for sponsor in sponsors.gold %}
35-
{% include '_sponsor.html' %}
35+
{% include '_sponsor.html' with isList=True %}
3636
{% endfor %}
3737

3838
<h3>Silver sponsor{% if sponsors.silver|length > 1 %}s{% endif %}</h3>
3939

4040
<div class="logos">
4141
{% for sponsor in sponsors.silver %}
42-
{% include '_sponsor.html' %}
42+
{% include '_sponsor.html' with isList=True %}
4343
{% endfor %}
4444
</div>
4545

4646
<h3>Bronze sponsor{% if sponsors.bronze|length > 1 %}s{% endif %}</h3>
4747

4848
<div class="logos">
4949
{% for sponsor in sponsors.bronze %}
50-
{% include '_sponsor.html' %}
50+
{% include '_sponsor.html' with isList=True %}
5151
{% endfor %}
5252
</div>
5353

0 commit comments

Comments
 (0)