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

Ability to remove sponsor link form "Become a XXX Sponsor!" #294

Merged
merged 11 commits into from
May 8, 2016
8 changes: 7 additions & 1 deletion data/events/2016-amsterdam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ team: ["Harm Boertien", "Thomas Krag", "Kerim Satirli", "Arjan Wolfs", "Wilco No
organizer_email: "[email protected]" # Put your organizer email address here
proposal_email: "[email protected]" # Put your proposal email address here

# Sponsors 2016-sendachi
sponsors_accepted: "no"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this stray comment from the amsterdam event data as they aren't a sponsor and it was a remnant of another yml file I looked at for inspiration.

sponsors:
# gold
- id: chef
Expand Down Expand Up @@ -69,17 +69,23 @@ sponsors:
sponsor_levels:
- id: bbq
label: BBQ
max: 1
- id: beer
label: Beer
max: 1
- id: gold
label: Gold
max: 8
- id: silver
label: Silver
max: 4
- id: bronze
label: Bronze
max: 4
- id: community
label: Community


nav_elements: # List of pages you want to show up in the navigation of your page.
- name: welcome
# - name: program
Expand Down
10 changes: 8 additions & 2 deletions themes/devopsdays-legacy/layouts/partials/event_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ <h2>{{ .label }} Sponsors</h2>
{{ end }}
{{ end }}
{{ if eq $e.status "current" }}
<div class = "sponsor-cta">
{{ if eq $e.sponsors_accepted "no" }}
<div class = "sponsor-cta">
<br>
</div>
{{ else }}
<div class = "sponsor-cta">
<a href = "/events/{{ $e.name }}/sponsor">Become a {{ .label }} Sponsor!</a>
</div>
</div>
{{ end }}
{{ else }}
<div class = "sponsor-cta">
</div>
Expand Down
1 change: 1 addition & 0 deletions yyyy-city.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sponsors:
- id: arresteddevops
level: community

sponsors_accepted : "yes" # Whether you want "Become a XXX Sponsor!" link
sponsor_levels: # In this section, list the level of sponsorships and the label to use.
- id: gold
label: Gold
Expand Down