<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>

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

        <div metal:use-macro="here/document_actions/macros/document_actions">
            Document actions (print, sendto etc)
        </div>

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

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

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

        <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 metal:use-macro="here/document_relateditems/macros/relatedItems">
            show related items if they exist
        </div>
        
    </tal:main-macro>
</div>

</body>

</html>

