Revise third-party content warning

This commit is contained in:
Tim Bannister
2021-10-02 16:28:54 +01:00
parent 92d8d1e966
commit 8a736308a9
5 changed files with 31 additions and 4 deletions
+8 -3
View File
@@ -1,4 +1,9 @@
<blockquote class="callout caution" role="alert">
<strong>{{ T "caution" | safeHTML }}</strong>
{{- $single := .Get "single" | default "false" -}}
<div class="alert alert-secondary callout third-party-content" role="alert">
{{- if not (eq $single "true" ) -}}
<strong>{{ T "note" | safeHTML }}</strong>
{{ T "thirdparty_message" | safeHTML }}
</blockquote>
{{- else -}}
{{ T "thirdparty_message_single_item" | safeHTML }}
{{- end -}}
</div>