2024-04-02 19:36:21 +00:00
|
|
|
<!--
|
|
|
|
Renders the table list of organisations.
|
|
|
|
-->
|
|
|
|
|
2024-02-04 01:40:15 +00:00
|
|
|
<section class="site-content__body">
|
|
|
|
<table class="organisations-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2">Organisation</th>
|
|
|
|
<th>Children</th>
|
|
|
|
<th>Related Items</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{- range .Pages -}}
|
|
|
|
{{- $organisation_title := .Title -}}
|
|
|
|
{{- if ( not ( and ( .Params.redact ) ( ne $.Site.Params.redact "show" ) ) ) -}}
|
|
|
|
{{ $organisation_titles := slice ( $organisation_title | plainify ) }}
|
|
|
|
{{ with .Sections }}
|
|
|
|
{{ $organisation_titles = $organisation_titles | append ( partial "cv/organisations/recursive-children-titles.html" . ) }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{{- if ( and ( .Params.redact ) ( ne $.Site.Params.redact "show" ) ) -}}
|
|
|
|
{{- if ( eq $.Site.Params.redact "black" ) -}}
|
|
|
|
{{- partialCached "redact-black.html" . -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- if .Params.featured_image -}}
|
|
|
|
<img class="organisation-table__logo" loading="lazy" src="
|
|
|
|
{{- if .Resources.GetMatch .Params.featured_image -}}
|
|
|
|
{{- ( .Resources.GetMatch .Params.featured_image ).RelPermalink -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- .Params.featured_image -}}
|
|
|
|
{{- end -}}
|
|
|
|
">
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{{- if ( and ( .Params.redact ) ( ne $.Site.Params.redact "show" ) ) -}}
|
|
|
|
{{- if ( eq $.Site.Params.redact "black" ) -}}
|
|
|
|
{{- partialCached "redact-black.html" . -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- else -}}
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
{{- if .Params.TitleLang -}}<i lang="{{ .Params.TitleLang }}" title="{{ .Params.TitleTrans }}"}>{{- end -}}
|
|
|
|
{{- with .Params.markup_title -}}{{- . | safeHTML -}}{{- else -}}{{- $organisation_title | safeHTML -}}{{- end -}}
|
|
|
|
{{- if .Params.TitleLang -}}</i>{{- end -}}
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
<span class="organisations-table__items-icon{{- if ( eq ( len .Sections ) 0 ) }} organisations-table__items-icon--none{{- end -}}">
|
|
|
|
🧑🧒 <br>
|
|
|
|
{{- len .Sections -}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
{{- range slice
|
|
|
|
"Roles"
|
|
|
|
"Blog Posts"
|
|
|
|
"Web Sites"
|
|
|
|
"Programs"
|
|
|
|
"Writings"
|
|
|
|
"Audiovisuals"
|
|
|
|
"Others"
|
|
|
|
"Qualifications"
|
|
|
|
"Awards"
|
|
|
|
"Appearances"
|
|
|
|
-}}
|
|
|
|
{{- partialCached "cv/organisation/get-num-of-items.html.tmpl" ( dict "sc" $ "section_title" . "organisation_titles" $organisation_titles ) ( print $organisation_title "_" . ) -}}
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|