Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Vote-351: exclude empty unordered list when registration type is not-…
Browse files Browse the repository at this point in the history
…needed (#950)
  • Loading branch information
clmedders authored Dec 12, 2023
1 parent 42a192c commit 7323d97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/partials/deadlines.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h2>{{ replace $translation.register.dates__heading "%state_name%" .Params.state_name }}</h2>
</header>
{{end}}

{{ if ne .Params.registration_type "not-needed"}}
<ul class="registered-resources">
{{ if or (ne .Params.online_deadline nil) (ne .Params.default_online_deadline nil) }}
{{ $onlineDeadline := cond (ne .Params.online_deadline nil) (partial "date-format-online.html" .) .Params.default_online_deadline }}
Expand Down Expand Up @@ -39,6 +39,7 @@ <h2>{{ replace $translation.register.dates__heading "%state_name%" .Params.state
</li>
{{ end }}
</ul>
{{ end }}

<!-- To use a different link than the default one for any language use the variable name 'confirm_registration_link_override' in states-data.json for that language -->
{{ $confirm_registration_link := .Params.confirm_registration_link_override | default .Params.confirm_registration_link }}
Expand Down

0 comments on commit 7323d97

Please sign in to comment.