Browse Source

Merge branch 'master' of zhaojunzhe/fair-web into master

pull/31/head
richie 5 years ago committed by Gogs
parent
commit
cce0749822
  1. 4
      views/submissions.ejs
  2. 7
      views/submissions_item.ejs

4
views/submissions.ejs

@ -68,7 +68,7 @@
</div> </div>
</div> </div>
<% } %> <% } %>
<label class="label">代码是否分享:</label> <label class="label">分享:</label>
<div class="field"> <div class="field">
<div class="ui fluid selection dropdown" id="select_share" style="width: 110px; "> <div class="ui fluid selection dropdown" id="select_share" style="width: 110px; ">
<input type="hidden" name="isshare" value="<%= form.isshare %>"> <input type="hidden" name="isshare" value="<%= form.isshare %>">
@ -106,7 +106,7 @@
<table id="vueAppFuckSafari" class="ui very basic center aligned table" style="white-space: nowrap; " id="table"> <table id="vueAppFuckSafari" class="ui very basic center aligned table" style="white-space: nowrap; " id="table">
<thead> <thead>
<tr> <tr>
<th>是否分享</th> <th>已分享</th>
<th>编号</th> <th>编号</th>
<th>题目</th> <th>题目</th>
<th>状态</th> <th>状态</th>

7
views/submissions_item.ejs

@ -63,10 +63,15 @@
} }
}); });
</script> </script>
<style>
.success{
color: #498E2B;
}
</style>
<script id="submissionItemTemplate" type="text/x-template"> <script id="submissionItemTemplate" type="text/x-template">
<tr> <tr>
<td><i class="icon" :class="data.info.is_share ? 'smile': 'meh'" style="font-size: 1.5em"></i></td> <td><i class="icon" :class="data.info.is_share ? 'smile outline success': 'meh outline'" style="font-size: 1.5em"></i></td>
<% if (active === 'submissions') { %> <% if (active === 'submissions') { %>
<td><a :href="submissionLink"><b>#{{ data.info.submissionId }}</b></a></td> <td><a :href="submissionLink"><b>#{{ data.info.submissionId }}</b></a></td>
<% } else { %> <% } else { %>

Loading…
Cancel
Save