Workaround for broken documents

This commit is contained in:
Georgy Litvinov 2021-03-18 12:13:59 +01:00
parent a9885a9e7e
commit eee56d606f

View file

@ -111,8 +111,13 @@
</#macro>
<#macro openDocPart count path >
<#if excerptTextName??>
<#assign buttonText = excerptTextName >
<#else>
<#assign buttonText = "No text" >
</#if>
<#list 1..count as x>
<button type="button" style="border:none;padding: 18px;width: 100%; text-align:left;" class="collapsible">${excerptTextName}</button>
<button type="button" style="border:none;padding: 18px;width: 100%; text-align:left;" class="collapsible">${buttonText}</button>
<div class="documentPart autoExpand articleExcerpt" id="anchor-${path}" style="display:block;">
</#list>
</#macro>