1234567891011121314151617181920212223242526272829303132333435 |
- <div class="panel-content">
- <div class="panel-title fluid">
- <div class="title-main d-flex">
- <div class="d-inline-block" id="show-level"></div>
- </div>
- </div>
- <div class="content-wrap">
- <div class="sjs-height-0" style="background-color: #fff">
- <div class="c-body">
- <% if (!projectList || projectList.length === 0) { %>
- <div class="jumbotron" id="no-project">
- <h3 class="display-6">还没有项目数据</h3>
- </div>
- <% } else { %>
- <table class="table table-bordered">
- <tr class="text-center">
- <th style="min-width: 200px" rowspan="2">项目名称</th>
- <th width="10%" rowspan="2">创建时间</th>
- <% if (ctx.session.sessionUser.is_admin) { %>
- <th width="10%" rowspan="2">操作</th>
- <% } %>
- </tr>
- <tbody id="projectList">
- </tbody>
- </table>
- <% } %>
- </div>
- </div>
- </div>
- </div>
- <script>
- const projectList = JSON.parse(unescape('<%- escape(JSON.stringify(projectList)) %>'));
- const category = JSON.parse(unescape('<%- escape(JSON.stringify(categoryData)) %>'));
- const is_admin = <%- ctx.session.sessionUser.is_admin %>;
- </script>
|