expand: remove undocumented named parameter

This commit is contained in:
Sören Weber 2021-07-16 23:14:07 +02:00
parent a9a081903a
commit bc1de84fc5
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -3,11 +3,7 @@
<a class="expand-label" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
<i class="fas fa-chevron-right"></i>
{{$expandMessage := T "Expand-title"}}
{{ if .IsNamedParams }}
{{.Get "default" | default $expandMessage}}
{{else}}
{{.Get 0 | default $expandMessage}}
{{end}}
</a>
<div class="expand-content" style="display: none;">
{{.Inner | safeHTML}}