authelia/docs/layouts/shortcodes/confkey.html
James Elliott b2c60ef898
feat: major documentation refresh (#3475)
This marks the launch of the new documentation website.
2022-06-15 17:51:47 +10:00

13 lines
813 B
HTML

{{ $requiredClass := "confkey-required" }}{{ $requiredText := "required" }}
{{ with .Get "required" }}
{{ if (eq . "no") }}{{ $requiredClass = "confkey-notrequired" }}{{ $requiredText = "not required" }}
{{ else if (eq . "situational") }}{{ $requiredClass = "confkey-situational" }}{{ $requiredText = "situational" }}
{{ end }}{{ end }}
<div class="mb-3">
<span class="badge confkey-type" data-bs-toggle="tooltip" data-bs-placement="top" title="The value type">{{ with .Get "type" }}{{ . }}{{ else }}string{{ end }}</span>
{{ with .Get "default" }}
<span class="badge confkey-default" data-bs-toggle="tooltip" title="The default value">{{ . }}</span>
{{ end }}
<span class="badge {{ $requiredClass }}" data-bs-toggle="tooltip" title="If this option is required or not">{{ $requiredText }}</span>
</div>