<#macro printrow node iconClass > <#if node.url?? && node.name??>
<#if node.pictureUrl??>
${node.pictureTitle}
<#if node.pictureUrl??>
<#else>
<#if !node.isAlive && showLifeStatus> ${node.name} <#if node.pictureUrl??>
<#else>
<#if extraAttrRodokmen> <#list node.extraAttr as attr> <#if attr??> <#if !oneRowAttrNameRodokmen?seq_contains(extraAttrNameRodokmen[attr?index])>
${extraAttrNameRodokmen[attr?index]}: ${attr}
<#-- Pro atributy, které chceme na jednom řádku --> <#if extraAttrRodokmen> <#if oneRowAttrNameRodokmen?size != 0>
<#list node.extraAttr as attr> <#if attr??> <#if oneRowAttrNameRodokmen?seq_contains(extraAttrNameRodokmen[attr?index])> ${extraAttrNameRodokmen[attr?index]}: ${attr}
<#if heathResults>
<#if node.healthResults??> <#list node.healthResults as healthResults> <#if healthResults??> ${healthResults}
<#else> ${node.name!'Nevyplněno'} <#macro printTree father mother> <#assign parents = [father, mother]> <#assign classes = ['second-degree', 'third-degree', 'forth-degree', 'fifth-degree', 'sixth-degree', 'seventh-degree', 'eighth-degree']>
<@printrow father 'fa-mars' />
<@printrow mother 'fa-venus' />
<#list classes as nodeClass>
<#assign child = []> <#list parents as parent>
<@printrow parent.otec 'fa-mars' />
<@printrow parent.matka 'fa-venus' />
<#assign child = child + [parent.otec, parent.matka]> <#assign parents = child>
<#macro printRows assets> <#list assets as asset> <#if asset.pictureUrl??> ${asset.pictureTitle} Jméno: <#if asset.url??> <#if !asset.isAlive && showLifeStatus> ${asset.name} <#else> <#if asset.name??> <#if !asset.isAlive && showLifeStatus> ${asset.name} <#if asset.sex??> Pohlaví:
<#if asset.sex == 'pes'> <#else> ${asset.sex}
<#if asset.birthdate??> Datum narození: ${asset.birthdate?string('dd. MM. yyyy')} <#else> <#if extraAttr> <#list asset.extraAttr as attr> <#if attr??> ${extraAttrName[attr?index]}: ${attr} <#else> <#macro printTable assets countOfFirstGenerations nameOfTable> <#if assets?size != 0> <#if extraAttr> <#list extraAttrName as name> <@printRows assets />
Jméno Pohlaví Datum narození${name}
<#if !error> <#if showAge>
<#if otec.age??>
- nar. ${otec.birthdate?string('dd. MM. yyyy')} ${otec.age}
<#else>
<#if matka.age??>
- nar. ${matka.birthdate?string('dd. MM. yyyy')} ${matka.age}
<#else>

<#if wright??>
<#if otec?? && matka??>
<@printTree otec matka />
<#if renderDescendants>

<@printTable descendants countOfFirstGenerations "Přímí potomci"/>
<#else> <#if otec.name?? && matka.name??> <#if otec.url?? && matka.url??>
Nelze zobrazit pro ${otec.name} a ${matka.name}.
<#else>
Nelze zobrazit pro ${matka.name} a ${otec.name}.
<#else>
Nelze zobrazit.