$def with (content)

<html>
    <head>
        <title>$org - $content.title</title>
        <link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" charset="utf-8"/>
        $for css in content.get('css', []):
            <link rel="stylesheet" href="/static/css/$css" type="text/css" media="screen" charset="utf-8"/>
        $for css in content.get('rawcss', []):
            <link rel="stylesheet" href="/static/$css" type="text/css" media="screen" charset="utf-8"/>
        <script type="text/javascript" src="/static/scripts/jquery.min.js"></script>
        <script type="text/javascript" src="/static/scripts/tabs.js"></script>
        <script type="text/javascript" src="/static/scripts/forms.js"></script>
        $for js in content.get('js', []):
            <script type="text/javascript" src="/static/scripts/$js"></script>
    </head>
    <body>
        <div id="header">
            <a href="/"><img id="logo" src="/static/images/logo.png" /></a>
            <div id ="session">
                $if session.has_key('loggedin'):
                    <a id="user" href="/user/preferences/">$session.username</a>
                    <br/>
                    <a href="/user/logout">$_('log out')</a>
                $else:
                    <a href="/user/login">$_('login')</a> | <a href="/user/register">$_('register')</a>
            </div>
            <div style="display: none" id="tab">$content.get('tab', 'navigator')</div>
            <ul id="navigation">
                <li class="navigator"><a href="/navigator">
                    <img src="/static/images/nav.png"/><br/>$_("Navigator")</a>
                </li>
                <li class="panel"><a href="/panel">
                    <img src="/static/images/panel.png"/><br/>$_("Panel")</a>
                </li>
                <li class="jobs"><a href="/jobs">
                    <img src="/static/images/jobs.png"/><br/>$_("Jobs")</a>
                </li>
                $if get_user().super_user:
                    <li class="pluginmanager"><a href="/pluginmanager">
                        <img src="/static/images/plugins.png"/><br/>$:_("Plugin<br/>Manager")</a>
                    </li>
                    <li class="users"><a href="/user">
                        <img src="/static/images/users.png"/><br/>$:_("Users")</a>
                    </li>
            </ul>
        </div>

        <div id="breadcrumb">
                <ul>
                $for link in content.hierarchy:
                    <li><a class="$('last' if loop.last else '')" href="$link.link">
                        $link.caption
                    </a></li>
                </ul>
        </div>

        <div id="content">
            <div id ="info-panel">
                <ul>
                    $for notification in get_notifications():
                        <li class="$notification.type">
                        <strong>$notification.date</strong>
                        <p>$notification.text</p>
                        </li>
                </ul>
            </div>
        <div id="main">
            $:content
        </div>
        $if actions_panel:
            $:actions_panel
        <div class="clear"></div>
        </div>
        <div id="footer">
            <a href="http://www.opengnsys.es">$_("Powered by opengnsys")</a>
        </div>
    </body>
</html>
