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

<body>

<metal:main fill-slot="main">
    <tal:main-macro metal:define-macro="main" 
           tal:define="size python:here.getObjSize(here);
                       content_type here/get_content_type|here/Format;
                      ">

        <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">
            <p>
                <a href=""
                   tal:define="here_url context/absolute_url"
                   tal:attributes="href string:$here_url/file_download_version?version_id=${version_id}">
                    <img src="" tal:attributes="src string:${portal_url}/file_icon.gif" alt="" />
                    <tal:block i18n:translate="label_click_to_get_file">
                    Click here to get the file
                    </tal:block>
                </a>
            </p>
    
            <small class="discreet">
                <span i18n:translate="label_size" i18n:domain="plone">
                Size
                </span>
            
                <span tal:condition="size"
                    tal:content="size">
                257 KB
                </span>
    
                <span tal:condition="python:test(size,0,1)" i18n:translate="no_file_uploaded">
                  (No file has been uploaded yet)
                </span>
    
                -
            
                <span i18n:translate="label_file_type">
                File type
                </span>
    
                <span tal:content="content_type">
                Content type
                </span>
            </small>
    
            <div class="row"
                 tal:condition="python:test(content_type.find('text')>-1, 1,0)">
    
                    <h2 i18n:translate="heading_file_contents" i18n:domain="plone">File contents</h2>
    
                    <pre tal:content="here/get_data|here/data|nothing">
                    </pre>

            </div>
        </div>

    </tal:main-macro>
</metal:main>

</body>

</html>
