<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <title>Big Whale</title>
    <script th:inline="javascript">
        // 是否开启刷新记忆tab功能
        var is_remember = false;
        if (window.self !== window.top) {
            window.top.location.href = window.self.location.href;
        }
        /*<![CDATA[*/
            $contextPath = /*[[@{/}]]*/'';
        /*]]>*/
    </script>
    <link href="./favicon.ico" rel="shortcut icon" >
    <link href="./libs/xadmin/xadmin.css" rel="stylesheet">
    <link href="./libs/fonts/font-awesome/font-awesome.min.css?v=4.4.0" rel="stylesheet"/>
    <script src="./libs/layui/layui.js" type="text/javascript"></script>
    <script src="./libs/xadmin/xadmin.js" type="text/javascript"></script>
    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<body class="x-admin-sm" >
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo">
            <a href="./">Big Whale</a>
        </div>
        <div class="left_open">
            <a><i title="展开左侧栏" class="fa fa-navicon" aria-hidden="true"></i></a>
        </div>
        <ul class="layui-nav left fast-add" lay-filter="">
            <li class="layui-nav-item">
                <a href="javascript:;"><i class="fa fa-plus" aria-hidden="true"></i></a>
                <dl class="layui-nav-child">
                    <!-- 二级菜单 -->
                    <dd>
                        <a bw-target="执行日志$script/cmd_record/list.html" onclick="xadmin.open('执行日志', 'script/cmd_record/list.html')">
                            <i class="fa fa-file-text-o" aria-hidden="true"></i>执行日志
                        </a>
                    </dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav right" lay-filter="">
            <li class="layui-nav-item">
                <a href="javascript:" th:text="${session.user.username}"></a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="./logout.html">退出</a>
                    </dd>
                </dl>
            </li>
        </ul>
    </div>
    <!-- 顶部结束 -->

    <!-- 中部开始 -->
    <!-- 左侧菜单开始 -->
    <div class="left-nav">
        <div id="side-nav">
            <ul id="nav">
                <li>
                    <a bw-target="脚本管理$script/list.html" onclick="xadmin.add_tab('脚本管理', 'script/list.html')">
                        <i class="fa fa-file-code-o" aria-hidden="true" lay-tips="脚本管理"></i>
                        <cite>脚本管理</cite>
                    </a>
                </li>
                <li>
                    <a bw-target="任务调度$scheduling/list.html" onclick="xadmin.add_tab('任务调度', 'scheduling/list.html')">
                        <i class="fa fa-tasks" aria-hidden="true" lay-tips="任务调度"></i>
                        <cite>任务调度</cite>
                    </a>
                </li>
                <li>
                    <a bw-target="Jar包管理$hdfs/list.html" onclick="xadmin.add_tab('Jar包管理', 'hdfs/list.html')">
                        <i class="fa fa-file-archive-o" aria-hidden="true" lay-tips="Jar包管理"></i>
                        <cite>Jar包管理</cite>
                    </a>
                </li>
                <li>
                    <a bw-target="Yarn应用$yarn_app/list.html" onclick="xadmin.add_tab('Yarn应用', 'yarn_app/list.html')">
                        <i class="fa fa-cubes" aria-hidden="true" lay-tips="Yarn应用"></i>
                        <cite>Yarn应用</cite>
                    </a>
                </li>
                <li th:if="${session.user.check('cluster_manage') || session.user.check('cluster_cluster_user_manage') || session.user.check('cluster_compute_framework_manage') || session.user.check('cluster_agent_manage')}">
                    <a href="javascript:;">
                        <i class="fa fa-object-group" aria-hidden="true" lay-tips="集群管理"></i>
                        <cite>集群管理</cite>
                        <i class="fa fa-angle-left nav_right" aria-hidden="true"></i>
                    </a>
                    <ul class="sub-menu">
                        <li th:if="${session.user.check('cluster_manage')}">
                            <a bw-target="集群管理$admin/cluster/list.html" onclick="xadmin.add_tab('集群管理', 'admin/cluster/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>集群管理</cite>
                            </a>
                        </li>
                        <li th:if="${session.user.check('cluster_cluster_user_manage')}">
                            <a bw-target="集群用户$admin/cluster/cluster_user/list.html" onclick="xadmin.add_tab('集群用户', 'admin/cluster/cluster_user/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>集群用户</cite>
                            </a>
                        </li>
                        <li th:if="${session.user.check('cluster_agent_manage')}">
                            <a bw-target="代理管理$admin/cluster/agent/list.html" onclick="xadmin.add_tab('代理管理', 'admin/cluster/agent/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>代理管理</cite>
                            </a>
                        </li>
                        <li th:if="${session.user.check('cluster_compute_framework_manage')}">
                            <a bw-target="版本管理$admin/cluster/compute_framework/list.html" onclick="xadmin.add_tab('版本管理', 'admin/cluster/compute_framework/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>版本管理</cite>
                            </a>
                        </li>
                    </ul>
                </li>
                <li th:if="${session.user.check('auth_resource_manage') || session.user.check('auth_role_manage') || session.user.check('auth_user_manage')}">
                    <a href="javascript:;">
                        <i class="fa fa-user-secret" aria-hidden="true" lay-tips="权限管理"></i>
                        <cite>权限管理</cite>
                        <i class="fa fa-angle-left nav_right" aria-hidden="true"></i>
                    </a>
                    <ul class="sub-menu">
                        <li th:if="${session.user.check('auth_resource_manage')}">
                            <a bw-target="资源管理$auth/resource/list.html" onclick="xadmin.add_tab('资源管理', 'auth/resource/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>资源管理</cite>
                            </a>
                        </li>
                        <li th:if="${session.user.check('auth_role_manage')}">
                            <a bw-target="角色管理$auth/role/list.html" onclick="xadmin.add_tab('角色管理', 'auth/role/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>角色管理</cite>
                            </a>
                        </li>
                        <li th:if="${session.user.check('auth_user_manage')}">
                            <a bw-target="用户管理$auth/user/list.html" onclick="xadmin.add_tab('用户管理', 'auth/user/list.html')">
                                <i class="fa fa-angle-right" aria-hidden="true"></i>
                                <cite>用户管理</cite>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
            <ul class="layui-tab-title">
                <li class="home">
                    <i class="fa fa-home" aria-hidden="true"></i>
                </li>
            </ul>
            <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
                <dl>
                    <dd data-type="this">关闭当前</dd>
                    <dd data-type="other">关闭其它</dd>
                    <dd data-type="all">关闭全部</dd>
                </dl>
            </div>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe src='welcome.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
                </div>
            </div>
            <div id="tab_show"></div>
        </div>
    </div>
    <div class="page-content-bg"></div>
    <style id="theme_style"></style>
    <!-- 右侧主体结束 -->
    <!-- 中部结束 -->
</body>
</html>