<div class="panel-sidebar">
    <div class="panel-title">
        <div class="title-bar">
            <h2><%= type === 1 ? '用户' : '内部' %>通知</h2>
        </div>
    </div>
    <div class="scrollbar-auto">
        <div class="nav-box">
            <ul class="nav-list list-unstyled">
                <li <% if (type === 1) {%>class="active"<% } %>>
                    <a href="/notify">
                        <span>用户通知</span>
                        <% if(userMessageTotal !== undefined) {%>
                        <span class="badge"><%= userMessageTotal %></span>
                        <% } %>
                    </a>
                </li>
                <li <% if (type === 2) {%>class="active"<% } %>>
                    <a href="/notify?type=2">
                        <span>内部通知</span>
                        <% if(systemMessageTotal !== undefined) {%>
                        <span class="badge"><%= systemMessageTotal %></span>
                        <% } %>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>