Commit 646807d4 authored by Kento HASEGAWA's avatar Kento HASEGAWA

Fix UI bugs

parent 27ef2387
...@@ -44,20 +44,22 @@ ...@@ -44,20 +44,22 @@
<th>Score</th> <th>Score</th>
</tr> </tr>
{% for k, v in qdata.answers.items() %} {% for k, v in qdata.answers.items() %}
{% if qdata.best_json == k %} {% if (qdata.best_json == k) and (v.answer != "") %}
<tr class="answer-detail-row submit-answer" data-json="{{k}}" data-qname="{{qname}}"> <tr class="answer-detail-row submit-answer" data-json="{{k}}" data-qname="{{qname}}">
{% else %} {% else %}
<tr class="answer-detail-row" data-json="{{k}}" data-qname="{{qname}}"> <tr class="answer-detail-row" data-json="{{k}}" data-qname="{{qname}}">
{% endif %} {% endif %}
<td>{{v.timestamp}}</td> <td>{{v.timestamp}}</td>
<td>{{v.solver}}</td> <td>{{v.solver}}</td>
<td>{{v.nlcheck}}</td> <td>
{% if v.nlcheck == -1 %}
Not solved
{% else %}
{{v.nlcheck}}
{% endif %}
</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div> </div>
<p>状況:<span id="solving-question-status">{{qdata.status}}</span></p>
<h4>結果</h4>
<p>クライアント:<span id="solved-client">{{qdata.answer.client}}</span></p>
<pre id="solved-result">{{qdata.answer.answer}}</pre>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment