Skip to content

Commit

Permalink
Merge pull request #294 from yvovandoorn/yvandoorn/abilitytoclosesponsor
Browse files Browse the repository at this point in the history
Ability to remove sponsor link form "Become a XXX Sponsor!"

Former-commit-id: 9ea1759
  • Loading branch information
bridgetkromhout committed May 8, 2016
2 parents de2db51 + ecef0dd commit b408936
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
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"
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

0 comments on commit b408936

Please sign in to comment.