part_solution_status.html 969 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<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}}">
            <td>{{v.timestamp_str}}</td>
            <td>{{v.worker}}</td>
            <td>
                {% if v.is_valid_solution() %}
                {{v.score}} ({{v.size_str}})
                {% else %}
                {{v.status}}
                {% endif %}
23
                {{v.nlcheck}}
24 25 26 27 28
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>