Skip to content
Snippets Groups Projects
Unverified Commit 78df220a authored by Olivia Simonet's avatar Olivia Simonet Committed by GitHub
Browse files

Ajustement des rôles administratifs, d'enseignement, etc dans la page d'une personne (#614)

parent 85d4b0d7
No related branches found
No related tags found
No related merge requests found
......@@ -211,11 +211,13 @@ ol.persons--list
.informations
@include grid
margin-bottom: $spacing-4
> div:first-of-type
grid-column: 1 / 9
.roles
grid-column: 9 / 13
text-align: right
grid-column: 1 / -1
.biography
grid-column: 1 / 9
+ .roles
grid-column: 9 / 13
text-align: right
.lead + div
margin-top: $spacing-4
.contacts-details ul
......
......@@ -42,26 +42,30 @@
{{ end }}
<div class="informations">
<div>
{{ partial "persons/summary.html" (dict
"context" .
) }}
{{ if (partial "GetTextFromHTML" .Content) }}
<div class="rich-text">
{{ partial "PrepareHTML" .Content }}
</div>
{{ end }}
</div>
{{ range $programsForAdministrator }}
{{ $program := . }}
{{ if .Content }}
<div class="biography">
{{ partial "persons/summary.html" (dict
"context" .
) }}
{{ if (partial "GetTextFromHTML" .Content) }}
<div class="rich-text">
{{ partial "PrepareHTML" .Content }}
</div>
{{ end }}
</div>
{{ end }}
{{ if $programsForAdministrator }}
<div class="roles">
{{ range .Params.roles }}
{{ $role := .title }}
{{ if in .persons $slug }}
<p>
{{ safeHTML $role }}<br>
<a href="{{ $program.Permalink }}" class="link">{{ safeHTML $program.Title }}</a>
</p>
{{ range $programsForAdministrator }}
{{ $program := . }}
{{ range .Params.roles }}
{{ $role := .title }}
{{ if in .persons $slug }}
<p>
{{ safeHTML $role }}<br>
<a href="{{ $program.Permalink }}" class="link">{{ safeHTML $program.Title }}</a>
</p>
{{ end }}
{{ end }}
{{ end }}
</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