<template name="imageThumbnail">
    <div class="imageThumbnail">
        <div class="imageThumbnailCanvas">
            <img class="static-image"/>
        </div>
        <div class="imageThumbnailLoadingIndicator
                    thumbnailLoadingIndicator
                    {{ #if isLoading }}d-block{{/if}}">
            <p>Loading {{percentComplete}}</p>
        </div>
        <div class="imageThumbnailErrorLoadingIndicator
                    thumbnailLoadingIndicator
                    {{ #if hasLoadingError }}d-block{{/if}}">
            <p>Error</p>
        </div>
        {{#if showStackLoadingProgressBar}}
            <div class="imageThumbnailProgressBar">
                <div class="imageThumbnailProgressBarInner" style="width:{{stackPercentComplete}}%"></div>
            </div>
        {{/if}}
    </div>
</template>
