<tal:block i18n:domain="loops">
<div class="body container"
     metal:define-macro="body"
     tal:define="controller nocall:view/controller;
                 resourceBase controller/resourceBase;"
     tal:attributes="class python:
            'body container' + (view.request.get('showgrid') and ' showgrid' or '')">

    <div id="top"
         metal:define-macro="global">
      <div class="span-8 last"
           metal:define-slot="top">
        <a name="top" metal:define-slot="logo"
           tal:attributes="href view/topMenu/url"><img class="logo"
               border="0" alt="Home"
               tal:attributes="src string:${resourceBase}logo.png" /></a>
        <hr />
      </div>
      <div id="top-actions" class="prepend-6 span-2 last"
           metal:define-slot="top-actions">
          <tal:action repeat="macro controller/macros/top_actions">
            <metal:action use-macro="macro" />
          </tal:action>
      </div>
    </div>

    <div id="content" class="span-6"
         tal:attributes="class content_class|string:span-6"
         metal:define-macro="content">
      <metal:breadcrumbs define-slot="breadcrumbs">
        <metal:tabs use-macro="views/node_macros/breadcrumbs" />
      </metal:breadcrumbs>
      <div metal:define-slot="actions"></div>
      <metal:message define-slot="message">
        <div class="message"
             i18n:translate=""
             tal:define="msg request/loops.message|nothing"
             tal:condition="msg"
             tal:content="msg" />
      </metal:message>
      <metal:tabs define-slot="view_modes">
        <metal:tabs use-macro="views/node_macros/view_modes" />
      </metal:tabs>
      <metal:content define-slot="content">
        <tal:content define="item nocall:view/item;
                             level level|python: 1;
                             macro item/macro;"
                     condition="macro">
          <metal:block use-macro="macro" />
        </tal:content>
      </metal:content>
    </div>

    <div id="portlets" class="span-2 last"
         tal:attributes="class portlets_class|string:span-2 last">
      <metal:portlet define-slot="portlet-left" >
        <tal:portlet repeat="macro controller/macros/portlet_left">
          <metal:portlet use-macro="macro" />
        </tal:portlet>
      </metal:portlet>
      <metal:portlet define-slot="portlet-right" >
        <tal:portlet repeat="macro controller/macros/portlet_right">
          <metal:portlet use-macro="macro" />
        </tal:portlet>
      </metal:portlet>
    </div>

    <div id="footer" class="footer clear"
         metal:define-macro="footer">
      <metal:footer define-slot="footer">
        &copy; Copyright <span tal:replace="view/currentYear" />,
        <span tal:replace="view/topMenu/copyright" />
        (<a i18n:translate=""
            tal:attributes="href string:${view/topMenu/url}/impressum">Impressum</a>)
        <br />
        Powered by
        <b><a href="http://www.wissen-statt-suchen.de">loops</a></b> &middot;
        <b><a href="http://wiki.zope.org/zope3">Zope 3</a></b> &middot;
        <b><a href="http://www.python.org">Python</a></b> &middot;
        <b><a href="http://www.dojotoolkit.org">Dojo</a></b>.
      </metal:footer>
    </div>

</div>
</tal:block>