
<div ng-if="vm.version==='drupal-8'" class="node node--type-{{node.type[0].target_id}} node--view-mode-full clearfix" id="node-{{ node | nid }}" data-nid="{{ node | nid }}"  data-uuid="{{ node.uuid[0].value }}" data-version="{{ vm.version }}">
    <h3 class="title" >{{ node.title[0].value }}</h3>
    <div class="content">
        <div class="body" ng-bind-html="node.body[0].value | trustAsHtml | drupalBody"></div>

        <div ng-if="node.field_iframe" class="field--name-field-iframe field-iframe"><iframe ng-src="{{node.field_iframe[0]['uri'] | trustAsSrc }}" width="{{ node.field_width[0]['value'] }}" height="{{ node.field_height[0]['value'] }}" frameborder="0" style="visibility:hidden;" onload="this.style.visibility='visible';" allowtransparency=”true”></iframe></div>

        <div ng-repeat="(key, value) in node._embedded">
            <div ng-if="key.indexOf('field_image') > -1">
                <div class="field--name-field-image field-image" ng-repeat="field in node._embedded[key]"><img class="field-field_image" alt="image" ng-src="{{ field['uri'][0].value | drupalImage }}" /></div>
            </div>
            <div ng-if="key.indexOf('field_file') > -1">
                <div class="field--name-field-file field-file well" ng-repeat="field in node._embedded[key]"><a ng-href="{{ field['uri'][0].value }}">{{ field['uri'][0].value }}</a></div>
            </div>
        </div>
    </div>
</div>

<div ng-if="vm.version==='drupal-7'" class="node node--type-{{node.type}} node--view-mode-full clearfix" id="{{ node | uuid }}" data-nid="{{ node | nid }}" data-version="{{ vm.version }}">
    <h3 class="title">{{ node.title }}</h3>
    <div class="content">
        <div class="field-thumbnail" ng-repeat="field in node.field_thumbnail['und']"><img class="field-field_image" alt="" ng-src="{{ field['uri'] | drupalImage }}" width="{{ field['width'] }}" height="{{ field['height'] }}" /></div>
        <div class="field-image" ng-repeat="field in node.field_image['und']"><img class="field-field_image" alt="" ng-src="{{ field['uri'] | drupalImage }}" width="{{ field['width'] }}" height="{{ field['height'] }}" /></div>
        <div class="body" ng-repeat="b in node.body['und']" ng-bind-html="b.value | trustAsHtml | drupalBody "></div>
        <div class="field-iframe" ng-repeat="field in node.field_iframe['und']"><iframe ng-src="{{field['url'] | trustAsSrc }}" width="{{ node.field_width['und'][0]['value'] }}" height="{{ node.field_height['und'][0]['value'] }}" frameborder="0" style="visibility:hidden;" onload="this.style.visibility='visible';" allowtransparency=”true”></iframe></div>
        <li ng-repeat="field in node.field_gallery['und']"><div class="field-image field-name-field-gallery" ><img class="field-field_gallery" alt="" ng-src="{{ field['uri'] | drupalImage }}" /></div></li>
    </div>
</div>
