#if (!$mode.startsWith("create-")) ## don't render space links for create-page, -blogpost, -comment.
<content tag="content-navigation">
    <div id="navigation" class="content-navigation view">
        <ul class="ajs-menu-bar">
            #menuMacros_renderAddMenu()
        </ul>
    </div>
</content>

<content tag="tab-navigation">
    <div id="tab-navigation">
        <ul class="tab-navigation">
            #foreach ($item in $webInterfaceManager.getDisplayableItems("system.space", $action.webInterfaceContext))
            #if ($context == $item.key)
                <li class="current tab">
            #else
                <li class="tab">
            #end
                ## do NOT use item link id here because they are used in the drop down menus
                <a href="$item.link.getDisplayableUrl($req, $action.webInterfaceContext)">$item.label.getDisplayableLabel($req, $action.webInterfaceContext)</a>
            </li>
            #end
        </ul>
    </div>
</content>

#end