{{ $path := split $.Source.File.Path "/" }}
{{ $event_slug := index $path 1 }}
{{ $e :=  (index $.Site.Data.events $event_slug) }}

</div>



<div class="col-md-4">
<!-- sponsor code begin -->
{{ if $e.sponsors }}
  {{ $sponsors := $e.sponsors }}
  {{ range $e.sponsor_levels }}
  <h2>{{ .label }} Sponsors</h2>
    {{ range where $sponsors "level" .id }}
      {{ $s :=  (index $.Site.Data.sponsors .id) }}
      {{ if isset $.Site.Data.sponsors .id }}
        <a href = "{{ $s.url }}"><img alt = "{{ .id }}" src = "/img/sponsors/{{ .id }}.png" class="img-responsive company-logo" height="100px" width="100px"></a>
      {{ end }}
    {{ end }}
    {{ if eq $e.status "current" }}
      <div class = "sponsor-cta">
        <a href = "/events/{{ $e.name }}/sponsor">Become a {{ .label }} Sponsor!</a>
      </div>
    {{ else }}
      <div class = "sponsor-cta">
      </div>
    {{ end }}
  {{ end }}
{{ end }}

<!-- sponsor code end -->
</div>
</div>

</div>
{{ partial "footer.html" . }}

{{ $path := split $.Source.File.Path "/" }}
{{ $event_slug := index $path 1 }}
{{ $e :=  (index $.Site.Data.events $event_slug) }}

</div>



<div class="col-md-4">
<!-- sponsor code begin -->
{{ if $e.sponsors }}
  {{ $sponsors := $e.sponsors }}
  {{ range $e.sponsor_levels }}
  <h2>{{ .label }} Sponsors</h2>
    {{ range where $sponsors "level" .id }}
      {{ $s :=  (index $.Site.Data.sponsors .id) }}
      {{ if isset $.Site.Data.sponsors .id }}
        <a href = "{{ $s.url }}"><img alt = "{{ .id }}" src = "/img/sponsors/{{ .id }}.png" class="img-responsive company-logo" height="100px" width="100px"></a>
      {{ end }}
    {{ end }}
    {{ if eq $e.status "current" }}
      {{ if eq $e.sponsor_status "closed" }}
        <div class = "sponsor-cta">
        </div>
      {{ else }}
        <div class = "sponsor-cta">
        <a href = "/events/{{ $e.name }}/sponsor">Become a {{ .label }} Sponsor!</a>
        </div>
      {{ end }}
    {{ else }}
      <div class = "sponsor-cta">
      </div>
    {{ end }}
  {{ end }}
{{ end }}

<!-- sponsor code end -->
</div>
</div>

</div>
{{ partial "footer.html" . }}

Add ability to remove href when sponsor_status is set to 'closed'
Add ability to remove href when sponsor_status is set to 'closed'


Former-commit-id: c475858403878d6c72ebc1ff80fcc66f3ee2f295