Commit ffc954d7 authored by Eric Poirier's avatar Eric Poirier
Browse files

Add past events option for events


Signed-off-by: Eric Poirier's avatarEric Poirier <eric.poirier@eclipse-foundation.org>
parent 57a311aa
......@@ -25,6 +25,7 @@
{{ $sortField := .Get "sortField" }}
{{ $upcoming := .Get "upcoming" | default "false" }}
{{ $archive := .Get "archive" | default "false" }}
{{ $past_event := .Get "past_event" | default "false" }}
{{ $includeLinks := .Get "includeList" }}
{{ $linksClass := .Get "linksClass" | default "list-inline block-summary-more margin-bottom-40" }}
{{ if not (in (.Page.Scratch.Get "events-container-ids") $id) }}
......@@ -45,7 +46,8 @@
{{ with $sortField }} data-sort-field="{{ . }}"{{ end }}
{{ with $sortOrder }} data-sort-order="{{ . }}"{{ end }}
{{ if or (eq $upcoming "true") (eq $upcoming "1") }} data-upcoming="1"{{ end }}
{{ if or (eq $archive "true") (eq $archive "1") }} data-archive="true"{{ end }}>
{{ if or (eq $archive "true") (eq $archive "1") }} data-archive="true"{{ end }}
{{ if or (eq $past_event "true") (eq $past_event "1") }} data-past-event="1"{{ end }}>
</div>
{{ if eq $includeLinks "true" }}
<ul class="{{ $linksClass }}">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment