<div class="main-nav">
    <div class="nav-top">
        <ul class="nav nav-pills flex-column nav-fill bg-nav">
            <li class="nav-item <% if(ctx.controllerName === 'dashboard') { %>active<% } %>">
                <a href="/dashboard" data-toggle="tooltip" data-placement="right" title="主页">
                    <i class="fa fa-dashboard"></i>
                </a>
            </li>
            <% for (const index in ctx.menuList) { %>
            <% if (ctx.menuList[index].display === undefined || !ctx.menuList[index].display) { continue } %>
            <li class="nav-item <% if(ctx.controllerName === index) { %>active<% } %>">
                <a href="<%= ctx.menuList[index].url %>" data-toggle="tooltip" data-placement="right" title="<%= ctx.menuList[index].name %>">
                    <i class="fa <%= ctx.menuList[index].icon %>"></i>
                </a>
            </li>
            <% } %>
        </ul>
    </div>
</div>