<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:main fill-slot="main">
      <h1 class="documentFirstHeading">Content History</h1>

        <div class="documentByLine"
             id="plone-document-byline"
             i18n:domain="plone">
          "<strong class="history-title">${context/Title}</strong>"

          <span id="lock-icon"
                tal:define="lock_icon view/locked_icon"
                tal:condition="python:lock_icon">
              <img tal:replace="structure lock_icon" />
          </span>

          <tal:creator tal:define="creator_short_form view/creator;"
                       tal:condition="creator_short_form">
          <tal:name tal:define="creator_long_form string:?author=${creator_short_form};
                                creator_is_openid python:'/' in creator_short_form;
                                creator_id python:(creator_short_form, creator_long_form)[creator_is_openid];">
            <span class="documentAuthor">
              <tal:i18n i18n:translate="label_by_author">
              by
              <a href="#"
                 tal:attributes="href string:${context/@@plone_portal_state/navigation_root_url}/author/${creator_id}"
                 tal:content="view/authorname"
                 tal:omit-tag="python:view.author() is None"
                 i18n:name="author">Roland Barthes</a>
              </tal:i18n>
                 —
            </span>
          </tal:name>
          </tal:creator>

          <tal:dates define="published view/pub_date;
                             modified context/ModificationDate">
          <span class="documentPublished"
                tal:condition="published">
            <span>
              published
            </span>
            <span class="pat-moment"
                   data-pat-moment="format:relative"
                   data-date="${published}">${published}</span><tal:sep condition="modified">,</tal:sep>
          </span>

          <span class="documentModified"
                tal:condition="modified">
            <span i18n:translate="box_last_modified">
              last modified
            </span>
            <span class="pat-moment"
                   data-pat-moment="format:relative"
                   data-date="${modified}">${modified}</span>
          </span>
          </tal:dates>

          <tal:expired tal:condition="view/isExpired">
            —
            <span class="state-expired"
                  i18n:translate="time_expired">expired</span>
          </tal:expired>

          <div class="documentContributors"
               tal:define="contributors context/Contributors"
               tal:condition="contributors"
               i18n:translate="text_contributors">
            Contributors:
            <span i18n:name="name"
                  tal:omit-tag=""
                  tal:content="python: ', '.join(contributors)">
              Mary
            </span>
          </div>

          <tal:rights tal:define="rights context/Rights"
                      tal:condition="rights">
            <div tal:replace="rights">
              Copyleft NiceCorp Inc.
            </div>
          </tal:rights>

        </div>

        <div id="content-core">
          <h3 i18n:translate="label_history">History</h3>
          <div tal:replace="structure here/@@contenthistory">Content History</div>
        </div>
    </metal:main>

</body>
</html>
