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

Correction des listes de programmes d'un campus (#627)

parent 98da85bc
No related branches found
No related tags found
No related merge requests found
{{/* Get programs associated to location */}}
{{ $programs := .programs }}
<ul class="diplomas"> <ul class="diplomas">
{{ range .diplomas }} {{ range .diplomas }}
{{ $path := .path }} {{ $diploma := site.GetPage (printf "/diplomas/%s" .path) }}
{{ with site.GetPage (printf "/diplomas/%s" .path) }} {{ if $diploma }}
<li> <li>
<a href="{{ .Permalink }}" aria-label="{{ i18n "commons.more_aria" (dict "Title" .Title) }}"> <a href="{{ $diploma.Permalink }}" aria-label="{{ i18n "commons.more_aria" (dict "Title" $diploma.Title) }}">
{{- partial "PrepareHTML" .Title -}} {{- partial "PrepareHTML" $diploma.Title -}}
</a> </a>
{{ if $programs }} {{ with .programs }}
<div class="content"> <div class="content">
<ol class="programs"> <ol class="programs">
{{- range $programs -}} {{- range . -}}
{{ $program := site.GetPage (printf "/programs%s" .) }} {{ $program := site.GetPage (printf "/programs%s" .slug) }}
{{ if (eq $path $program.Params.diplomas)}} {{- partial "partials/locations/program.html" $program.Params -}}
{{- partial "partials/locations/program.html" $program.Params -}}
{{ end }}
{{- end -}} {{- end -}}
</ol> </ol>
</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