Commit fa33ab65 authored by Kento HASEGAWA's avatar Kento HASEGAWA

Fix the client status display in each question status

parent 6f0a8af2
...@@ -20,7 +20,7 @@ Viewer Mode ...@@ -20,7 +20,7 @@ Viewer Mode
<tr class="client-status-row" data-cname="{{c[0]}}"> <tr class="client-status-row" data-cname="{{c[0]}}">
<td class="client-status-name"> <td class="client-status-name">
{% if c|length > 3 %} {% if c|length > 3 %}
&nbsp;<img src="static/client-icon/{{c[3]}}" alt="{{c[2]}}" height="30" /> <img src="static/client-icon/{{c[3]}}" alt="{{c[2]}}" height="30" />&nbsp;
{% endif %} {% endif %}
{{c[0]}} {{c[0]}}
{% if c|length > 2 %} {% if c|length > 2 %}
......
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-4">
<h3>問題 【{{qname}}】</h3> <h3> 【{{qname}}】</h3>
<p> <p>
<button class="btn btn-primary btn-lg start-button" type="button" data-qname="{{qname}}">Start</button> <button class="btn btn-primary btn-lg start-button" type="button" data-qname="{{qname}}">Start</button>
</p> </p>
</div> </div>
<div class="col-6"> <div class="col-8">
<p>処理結果</p> <p>処理結果</p>
<table class="table table-bordered"> <table class="table table-bordered">
<tr> <tr>
<th>クライアント</th> <th>Client (Solver)</th>
<th>Status</th> <th>Status</th>
</tr> </tr>
{% for c in clients %} {% for c in clients %}
{% if c[1] == "Solver" %}
<tr> <tr>
<td>{{c}}</td> <td>
{% if c|length > 3 %}
<img src="static/client-icon/{{c[3]}}" alt="{{c[2]}}" height="30" />&nbsp;
{% endif %}
{{c[0]}}
{% if c|length > 2 %}
&nbsp;({{c[2]}})
{% endif %}
</td>
<td></td> <td></td>
</tr> </tr>
{% endif %}
{% endfor %} {% endfor %}
</table> </table>
</div> </div>
......
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