Skip to content
Snippets Groups Projects
Unverified Commit 5478b223 authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #241 from noesya/block-agenda-no-events

Block agenda : show no event message if present and empty events list 
parents 50b09051 89fd09c7
No related branches found
No related tags found
No related merge requests found
......@@ -16,21 +16,26 @@
"description" .description
)}}
<div class="events events--{{- $layout -}}">
{{ range .events }}
{{ $event := site.GetPage .file }}
{{ with $event }}
{{ partial "events/event" (dict
"event" .
"layout" $layout
"show_summary" $show_summary
"show_category" $show_category
"show_status" $show_status
"heading" (printf "h%d" $block.ranks.children)
) }}
{{ if .events }}
<div class="events events--{{- $layout -}}">
{{ range .events }}
{{ $event := site.GetPage .file }}
{{ with $event }}
{{ partial "events/event" (dict
"event" .
"layout" $layout
"show_summary" $show_summary
"show_category" $show_category
"show_status" $show_status
"heading" (printf "h%d" $block.ranks.children)
) }}
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ else if .no_event_message }}
<p>{{ partial "PrepareHTML" .no_event_message }}</p>
{{ end }}
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment