<div data-id="btn-action-button"
     class="action-button">
    <i class="fas fa-ellipsis-v"></i>
    <ul class="action-list disable-select"
        style="list-style-type: none; list-style: none; padding: 0;margin: 0">
        <!--
        <li class="action-list-item" style="border-bottom: 1px solid #1D82FF">
            <a href="#/message/list">
                <i class="fas fa-inbox"></i>  <span><%= _lc( 'ACTIONMENU_MESSAGES' ) %></span>
            </a>
        </li>
        <li class="action-list-item">
            <a href="#/message/create">
                <i class="fa fa-comment-alt"></i>&nbsp;&nbsp;<span><%= _lc( 'ACTIONMENU_CREATE_MESSAGE' ) %></span>
            </a>
        </li>
        -->
        <!--
        <li class="action-list-item">
            <i class="fa fa-bell"></i>&nbsp;&nbsp;<span>Notification</span>
        </li>
        -->
        <% var currentUser = app.model.SessionUser ? app.model.SessionUser.getUserProfile() : null; %>
        <% var adminGroups = app.model.SessionUser ? app.model.SessionUser.getAdminGroups() : null; %>
            <% if ( currentUser && 0 < adminGroups.length ) { %>
                <li>
                    <div class="action-list-item" onclick="window.open(app.core.App.getConfig('manager.url'), '_system', 'location=yes');">
                        <i class="fas fa-server"></i>&nbsp;&nbsp;<span><%= _lc( 'ACTIONMENU_MANAGER_CONSOLE' ) %></span>
                    </div>
                </li>
                <li class="action-list-item">
                    <a href="<%= ( 1 < currentUser.getNumberOfGroupsWithAdminRole() ) ? '#/groups' : ( '#/group/' + ( currentUser.getGroupData()[0].team_id  ) + '/invite' ) %>">
                        <i class="fas fa-user-plus"></i>&nbsp;&nbsp;<span><%= _lc( 'ACTIONMENU_INVITE' ) %></span>
                    </a>
                </li>
                <li class="action-list-item">
                    <a href="<%= '#/group/' + ( currentUser.getGroupData()[0].team_id  ) + '/membermanagement' %>">
                        <i class="fas fa-users"></i>&nbsp;&nbsp;<span><%= _lc( 'GROUP_EDIT_MEMBERS' ) %></span>
                    </a>
                </li>
                <li class="action-list-item">
                    <a href="#/course/categories/<%= adminGroups[ 0 ].getId() %>">
                        <i class="fas fa-sliders-h"></i>&nbsp;&nbsp;<span><%= _lc( 'ACTIONMENU_CATEGORY_MANAGEMENT' ) %></span>
                    </a>
                </li>
                <li class="action-list-item">
                    <a href="#/stats/reporting">
                        <i class="fas fa-chart-line"></i>&nbsp;&nbsp;<span><%= _lc( 'ACTIONMENU_STATS' ) %></span>
                    </a>
                </li>
                <li class="action-list-item">
                    <a href="#/appointment/create">
                        <i class="fas fa-calendar-plus"></i>&nbsp;&nbsp;<span><%= _lc( 'ACTIONMENU_CREATE_APPOINTMENT' ) %></span>
                    </a>
                </li>
        <% }    %>
    </ul>
</div>