part_problem_status_list.html 1.75 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<div id="request-list-container">
    <h4>リクエスト一覧</h4>
    <div id="request-table-container">
        <table class="table table-bordered table-sm">
            <tbody>
                {% for r in status %}
                <tr>
                    <td>{{r['worker']}}</td>
                    <td>{{r['status']}}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>

<div id='solution-list-container'>
    <h4>処理結果一覧</h4>
    <div id="solution-table-container">
        <table class="table table-bordered table-striped">
            <thead>
                <tr>
                    <th>Timestamp</th>
                    <th>Client</th>
                    <th>Score</th>
                </tr>
            </thead>
            <tbody>
                {% for k, v in solutions %}
                {% set tr_class = '' %}
                {% set tr_class = tr_class + ' submit-solution' if k == problem.best_solution else '' %}
                {% set tr_class = tr_class + ' valid-solution' if v.is_valid_solution() else '' %}
                <tr class="solution-detail-row {{tr_class}}" data-solution-id="{{k}}" data-problem="{{problem.name}}">
34
                    <td>{{v.timestamp_str}} ({{v.request_id}})</td>
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
                    <td>{{v.worker}}</td>
                    <td>
                        {% if v.is_valid_solution() %}
                        {{v.score}} ({{v.size_str}})
                        {% else %}
                        {{v.status}}
                        {% endif %}
                        {{v.nlcheck}}
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>