<tal:block i18n:domain="loops">
<metal:block define-macro="body"
             tal:define="controller nocall:view/controller;
                         resourceBase controller/resourceBase;">

    <div id="main_container"
         dojoType="dijit.layout.BorderContainer"
         gutters="true">

      <div id="global" metal:define-macro="global"
           dojoType="dijit.layout.ContentPane"
           region="top" splitter="false">
        <div class="top" metal:define-slot="top">
          <a href="#" name="top" metal:define-slot="logo"
             tal:attributes="href string:${view/requestUrl/1}"><img class="logo"
                 src="logo.gif" border="0" alt="Home"
                 tal:attributes="src string:${resourceBase}logo.gif" /></a>
        </div>
      </div>

      <div dojoType="dijit.layout.BorderContainer"
           region="center" gutters="true" design="sidebar"
           splitter="false" liveSplitters="true"
           tal:define="item nocall:view/targetItem">
        <div metal:define-macro="menu"
             dojoType="dijit.layout.ContentPane"
             region="leading" splitter="true"
             style="width: 20%">
          <metal:portlet use-macro="item/navigation_macro" />
        </div>
        <div metal:define-macro="content"
             dojoType="dijit.layout.ContentPane"
             region="center" splitter="true">
          <div metal:define-slot="actions"></div>
          <div metal:define-slot="message"></div>
          <metal:content define-slot="content">
            <tal:content define="level level|python: 1;
                                 macro item/macro;"
                         condition="macro">
              <metal:block use-macro="macro" />
            </tal:content>
          </metal:content>
        </div>
      </div>

      <div class="footer" metal:define-macro="footer"
           dojoType="dijit.layout.ContentPane"
           region="bottom" splitter="false"
           style="margin-top: 0">
        <metal:footer define-slot="footer">
          Powered by 
          <b><a href="http://loops.cy55.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>

</metal:block>
</tal:block>