<% if (Object.keys(ctx.session.sessionProject).length > 0) { %>
<div class="poj-name">
    <span class="name"><%= ctx.session.sessionProject.name %></span>
    <% if (ctx.session.sessionProjectList.length > 0) { %>
    <div class="btn-group">
        <a class=" btn" data-toggle="dropdown">
            <span class="fa fa-caret-down" data-toggle="tooltip" data-placement="bottom" title="切换项目"></span>
        </a>
        <div class="dropdown-menu">
            <% ctx.session.sessionProjectList.forEach(function(project) {%>
            <% if (project.name !== null) {%>
            <a href="/project/switch/<%= project.id %>" class="dropdown-item"><%= project.name %></a>
            <% } %>
            <% }) %>
        </div>
    </div>
    <% } %>
    <a href="/project/info" class="btn" data-toggle="tooltip" data-placement="bottom" title="项目设置"><i
            class="fa fa-cogs"></i></a>
</div>
<% } %>