You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
<% this.title = '练习' %> |
|
<style> |
|
#practice{ |
|
width: 100%; |
|
} |
|
</style> |
|
<% include header %> |
|
<div id="practice"> |
|
<% if(result.length === 0) { %> <div class="ui placeholder segment"> |
|
<div class="ui icon header"> |
|
<i class="sticky note icon"></i> |
|
暂无题目处于可练习的状态下 |
|
</div> |
|
</div> <% } else { %> <table class="ui very basic center aligned table"> |
|
<thead> |
|
<tr> |
|
<th>练习阶段名称</th> |
|
<th>练习阶段介绍</th> |
|
<th>练习阶段包含题目数量</th> |
|
<th>已完成题目数量</th> |
|
<th>练习阶段状态</th> |
|
<th>是否是当前阶段</th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<% for (let resultItem of result){%> |
|
<tr> |
|
<% if(resultItem.href) { %> <td><a href="<%= resultItem.href%>"><%= resultItem.name%></a></td> <% } else { %> <td><%= resultItem.name%></td> <% } %> |
|
<td><%= resultItem.intro%></td> |
|
<td><%= resultItem.problem_num%></td> |
|
<td><%= resultItem.ac_num%></td> |
|
<% if(resultItem.href) { %> <td>可练习</td> <% } else { %> <td>目前不可练习,完成当前阶段后解锁</td> <% } %> |
|
<% if(resultItem.isNow) { %> <td>是</td> <% } else { %> <td>否</td> <% } %> |
|
</tr> |
|
<%}%> |
|
</tbody> |
|
</table> <% } %> |
|
|
|
</div> |
|
<% include footer %>
|
|
|