Commit fa33ab65 authored by Kento HASEGAWA's avatar Kento HASEGAWA
Browse files

Fix the client status display in each question status

parent 6f0a8af2
Loading
Loading
Loading
Loading
+1 −1
Changes for comm/server/templates/part_client_table.html: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ Viewer Mode
    <tr class="client-status-row" data-cname="{{c[0]}}">
        <td class="client-status-name">
            {% 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 %}
            {{c[0]}}
            {% if c|length > 2 %}
+15 −5
Changes for comm/server/templates/part_question_status.html: 15 added lines, 5 removed lines.
Original line number Diff line number Diff line
<div class="row">
    <div class="col-6">
        <h3>問題 【{{qname}}】</h3>
    <div class="col-4">
        <h3> 【{{qname}}】</h3>
        <p>
            <button class="btn btn-primary btn-lg start-button" type="button" data-qname="{{qname}}">Start</button>
        </p>
    </div>
    <div class="col-6">
    <div class="col-8">
        <p>処理結果</p>
        <table class="table table-bordered">
            <tr>
                <th>クライアント</th>
                <th>Client (Solver)</th>
                <th>Status</th>
            </tr>
            {% for c in clients %}
            {% if c[1] == "Solver" %}
            <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>
            </tr>
            {% endif %}
            {% endfor %}
        </table>
    </div>