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

<body>

    <metal:content-core fill-slot="content-core">
        <metal:block define-macro="content-core"
                     tal:define="content_type context/get_content_type|context/Format">
            <p>
                <metal:field use-macro="python:context.widget('file', mode='view')">
                File
                </metal:field>
            </p>
            <div tal:condition="python: content_type.startswith('text')">
                <h2 i18n:translate="heading_file_contents">File contents</h2>
                <pre tal:content="context/get_data|context/data|nothing">
                </pre>
            </div>
        </metal:block>
    </metal:content-core>

</body>

</html>
