2023-06-07 15:12:58 +02:00
|
|
|
|
2023-05-22 21:04:40 +02:00
|
|
|
{{ if .profile_details }}
|
|
|
|
<div>
|
|
|
|
{{ if .profile_details.thumbnail }}
|
2023-05-24 02:26:08 +02:00
|
|
|
{{ $image := replace .profile_details.thumbnail "200x200" "150x150" }}
|
|
|
|
{{ $alttext := printf "Foto van %s" .profile_details.name }}
|
2023-06-07 15:12:58 +02:00
|
|
|
{{ if and (.add_link_to_image) (.profile_details.profile_page) }}<a href="{{ .profile_details.profile_page }}">{{ end }}
|
2023-05-24 02:26:08 +02:00
|
|
|
{{ partial "show-image.html" (dict "context" . "image" $image "alt" $alttext) }}
|
2023-06-07 15:12:58 +02:00
|
|
|
{{ if and (.add_link_to_image) (.profile_details.profile_page) }}</a>{{ end }}
|
2023-05-22 21:04:40 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|