{{#if displayChildren}}
    {{#if_eq childrenResult.length 0}}
        <span data-i18n-id="i18n_no_children" class="text-muted i18n">{{i18n "i18n_no_children" "No Children"}}</span>
    {{else}}
        <ul style='list-style-type: none; padding-left: 15px;'>
            {{#each childrenResult}}
                {{#if childConcept.activeStatus}}
                    <li data-module="{{childConcept.moduleId}}" data-concept-id='{{childConcept.id}}' data-term='{{childConcept.fullySpecifiedName}}' class='treeLabel'>
                        <button class='btn btn-link btn-xs treeButton' style='padding:2px'><i class='glyphicon glyphicon-{{#if_eq ../../selectedView "inferred"}}{{#if_eq countOfChildrens 0}}minus{{else}}chevron-right{{/if_eq}}{{else}}{{#if_eq isLeafStated true}}minus{{else}}chevron-right{{/if_eq}}{{/if_eq}} treeButton' id='{{../../divElementId}}-treeicon-{{childConcept.id}}'></i></button>
                        {{#if_eq childConcept.definitionStatusId "PRIMITIVE"}}
                            <span class="badge alert-warning" draggable="true" ondragstart="drag(event, '{{../../divElementId}}')" data-module="{{childConcept.moduleId}}" data-concept-id="{{childConcept.id}}" data-term="{{childConcept.fullySpecifiedName}}" data-definitionStatus="{{childConcept.definitionStatusId}}"> >&nbsp;&nbsp;</span>&nbsp;&nbsp;
                        {{else}}
                            <span class="badge alert-warning" draggable="true" ondragstart="drag(event, '{{../../divElementId}}')" data-module="{{childConcept.moduleId}}" data-concept-id="{{childConcept.id}}" data-term="{{childConcept.fullySpecifiedName}}" data-definitionStatus="{{childConcept.definitionStatusId}}">&equiv;</span>&nbsp;&nbsp;
                        {{/if_eq}}
                     
                        <a href="javascript:void(0);" style="color: inherit;text-decoration: inherit;">
                            <span class="treeLabel selectable-row" data-module="{{childConcept.moduleId}}" data-concept-id="{{childConcept.id}}" data-term="{{childConcept.fullySpecifiedName}}" data-definitionStatus="{{childConcept.definitionStatusId}}" id="{{../../divElementId}}-treenode-{{childConcept.id}}">{{childConcept.fullySpecifiedName}}</span>
                        </a>
                    </li>
                {{/if}}
            {{/each}}
        </ul>
    {{/if_eq}}
{{else}}
    {{#if_eq childrenResult.length 0}}
        <span data-i18n-id="i18n_no_children" class="text-muted i18n">{{i18n "i18n_no_children" "No children"}}</span>
    {{else}}
     
            <ul style='list-style-type: none; padding-left: 15px;'>
                {{#each childrenResult}}
                    {{#if childConcept.activeStatus}}
                        <li data-module="{{childConcept.moduleId}}" data-concept-id='{{childConcept.id}}' data-term='{{childConcept.fullySpecifiedName}}' data-definitionStatus='{{childConcept.definitionStatusId}}' class='treeLabel'>
                            <button class='btn btn-link btn-xs treeButton' style='padding:2px'><i class='glyphicon glyphicon-{{#if_eq ../../selectedView "inferred"}}{{#if_eq countOfChildrens 0}}minus{{else}}chevron-right{{/if_eq}}{{else}}{{#if_eq isLeafStated true}}minus{{else}}chevron-right{{/if_eq}}{{/if_eq}} treeButton' id='{{../../divElementId}}-treeicon-{{childConcept.id}}'></i></button>
                            {{#if_eq childConcept.definitionStatusId "PRIMITIVE"}}
                                <span class="badge alert-warning" draggable="true" ondragstart="drag(event, '{{../../divElementId}}')" data-module="{{childConcept.moduleId}}" data-concept-id="{{childConcept.id}}" data-term="{{childConcept.fullySpecifiedName}}" data-definitionStatus="{{childConcept.definitionStatusId}}">&nbsp;&nbsp;</span>&nbsp;&nbsp;
                            {{else}}
                                <span class="badge alert-warning" draggable="true" ondragstart="drag(event, '{{../../divElementId}}')" data-module="{{childConcept.moduleId}}" data-concept-id="{{childConcept.id}}" data-term="{{childConcept.fullySpecifiedName}}" data-definitionStatus="{{childConcept.definitionStatusId}}">&equiv;</span>&nbsp;&nbsp;
                            {{/if_eq}}
                            
                            
                            <a href="javascript:void(0);" style="color: inherit;text-decoration: inherit;">
                                <span class="treeLabel selectable-row" data-module="{{childConcept.moduleId}}" data-concept-id="{{childConcept.id}}" data-term="{{childConcept.fullySpecifiedName}}"  data-definitionStatus="{{childConcept.definitionStatusId}}" id="{{../../divElementId}}-treenode-{{childConcept.id}}">{{childConcept.fullySpecifiedName}}</span>
                            </a>
                        </li>
                    {{/if}}
                {{/each}}
            </ul>      
    {{/if_eq}}
{{/if}}


