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

<head>
    <metal:block fill-slot="top_slot"
                 tal:define="dummy python:request.set('disable_border',1)" />
</head>

<body>

<tal:block tal:condition="exists: context/portal_skins | nothing"
           tal:replace="nothing">
    <tal:block tal:condition="context/portal_skins/updateSkinCookie | nothing"
               tal:define="dummy context/setupCurrentSkin" />
</tal:block>

<metal:main fill-slot="main"
     tal:define="isAnon context/@@plone_portal_state/anonymous;">

  <metal:not-anon tal:condition="not:isAnon"
                  tal:define="came_from request/came_from|nothing;
                              initial_login request/initial_login|nothing;
                              js_enabled python:request.get('js_enabled','1')!='0';">

      <h1 class="documentFirstHeading"
          i18n:translate="heading_you_are_now_logged_in">You are now logged in</h1>

      <p tal:condition="initial_login" class="documentDescription"
         i18n:translate="description_logged_in_explain">
         Notice that the top right bar has changed. It now
         contains several personalized items. Use these items
         to control your settings and your personal area.
         They will remain as long as you are logged in.
      </p>

      <div id="content-core">
          <p tal:condition="came_from">
            <a href=""
               tal:attributes="href came_from"
               i18n:translate="label_login_continue">
              Continue</a>
          </p>

          <p tal:define="portal context/@@plone_portal_state/portal;"
             tal:condition="python:not came_from">
            <a href=""
               tal:attributes="href context/@@plone_portal_state/navigation_root_url"
               i18n:translate="label_login_continue_to_home_page">
              Continue to the
              <span tal:content="portal/title" i18n:name="portal_title">
                  portal title
              </span>
              home page
              </a>
          </p>

          <div tal:condition="not:js_enabled">
             <p i18n:translate="description_enable_cookies_to_stay_logged_in">
                Note: If you do not remain logged in after leaving this page,
                it is because you need to enable cookies in your browser.
             </p>
          </div>
      </div>
  </metal:not-anon>

  <metal:anon tal:condition="isAnon">
      <div metal:use-macro="context/login_failed/macros/login_failed" />
  </metal:anon>

</metal:main>

</body>
</html>

