<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">

<body>

<metal:main fill-slot="main">
    <tal:main-macro metal:define-macro="main"
                    tal:define="size here/size;
                                here_url context/absolute_url;">

        <h1 tal:content="object_title" class="documentFirstHeading">
            Title or id
        </h1>

        <div tal:replace="structure provider:plone.belowcontenttitle" />

        <div class="documentDescription"
           tal:content="here/Description"
           tal:condition="here/Description">
            Description
        </div>

        <div id="content-core">
            <a href=""
               class="discreet"
               tal:attributes="href string:$here_url/file_download_version?version_id=${request/version_id}">
                <tal:block condition="size" replace="structure python: here.version_image_tag(here_url, version_id)" />
                <br />
                <span class="visualNoPrint">
                    <img src="" alt="" tal:replace="structure here/search_icon.gif" />
                    <span i18n:translate="label_click_to_view_full_image">Click to view full-size image&hellip;</span>
                </span>
            </a>

            <span class="discreet visualNoPrint">
            &mdash;
                <span i18n:translate="label_size">Size</span>:

                <span tal:define="size python:here.getObjSize(here)"
                      tal:content="size">
                    File size
                </span>

                <span tal:condition="python:test(size, 0, 1)"
                      i18n:translate="no_image_uploaded">
                    (No image has been uploaded yet)
                </span>
            </span>
        </div>

    </tal:main-macro>

</metal:main>

</body>

</html>

