<span>
    <a bo-href-i="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ imageId }}"
       class="image-link-element" bindonce>
        <span class="id-label" ng-if="!hasSHA256(manifestDigest)"
              data-title="The Docker V1 ID for this image. This ID is not content addressable nor is it stable across pulls."
              data-container="body"
              bs-tooltip>V1ID</span>

        <span class="id-label cas" ng-if="hasSHA256(manifestDigest)"
              data-title="The content-addressable SHA256 hash of this tag."
              data-container="body"
              bs-tooltip>SHA256</span>

        <span ng-if="!hasSHA256(manifestDigest)">{{ imageId.substr(0, 12) }}</span>
        <span ng-if="hasSHA256(manifestDigest)">{{ getShortDigest(manifestDigest) }}</span>
    </a>
</span>