init="hasImage = isImage(base.object.attachment.contentType)">
        <div class="file-box">
            <div class="file">
                <div class="image" ng-show="hasImage">
                    <img class="btn img-responsive img-thumbnail" ng-src="./api/datastore/{{base.object.attachment.id}}"
                        alt="{{base.object.attachment.name}}"
                        ng-click="showImage(base.object.attachment.id, base.object.attachment.name)"></img>
                </div>

                <