64 lines
3.0 KiB
HTML
64 lines
3.0 KiB
HTML
<div class="row">
|
|
<div class="col-md-12">
|
|
<table class="table table-striped border">
|
|
<thead>
|
|
<tr>
|
|
<th class="border-right" data-checkbox>
|
|
<div class="form-check text-center">
|
|
<input type="checkbox" class="form-check-input" data-checkbox-all>
|
|
</div>
|
|
</th>
|
|
<th class="sort-col text-center"><b>ID</b></td>
|
|
<th class="text-center"><b>User</b></td>
|
|
<th class="sort-col text-center"><b>Challenge</b></td>
|
|
<th class="text-center"><b>Container</b></td>
|
|
<th class="text-center"><b>Port</b></td>
|
|
<th class="text-center"><b>Flag</b></td>
|
|
<th class="sort-col text-center"><b>Startup Time</b></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for container in containers %}
|
|
<tr>
|
|
<td class="border-right" data-checkbox>
|
|
<div class="form-check text-center">
|
|
<input type="checkbox" class="form-check-input" data-user-id="{{ container.user.id }}">
|
|
</div>
|
|
</td>
|
|
<td class="text-center">
|
|
{{ container.id }}
|
|
</td>
|
|
<td class="text-center">
|
|
<a href="{{ url_for('admin.users_detail', user_id=container.user.id) }}">
|
|
{{ container.user.name | truncate(12) }}
|
|
</a>
|
|
</td>
|
|
<td class="text-center">
|
|
<a href="{{ url_for('admin.challenges_detail', challenge_id=container.challenge.id) }}">
|
|
{{ container.challenge.name }}
|
|
</a>
|
|
</td>
|
|
<td class="text-center" style="word-break: break-all; white-space: normal; max-width: 200px;">
|
|
<span class="d-inline-block" style="font-family: monospace; font-size: 0.85em;">{{ container.uuid }}</span>
|
|
<button class="btn btn-link p-0 click-copy ml-1" data-copy="{{ container.uuid }}" title="复制UUID">
|
|
<i class="fas fa-clipboard"></i>
|
|
</button>
|
|
</td>
|
|
<td class="text-center">
|
|
{{ container.port if container.port else '-' }}
|
|
</td>
|
|
<td class="text-center">
|
|
<button class="btn btn-link p-0 click-copy" data-copy="{{ container.flag }}">
|
|
<i class="fas fa-clipboard"></i>
|
|
</button>
|
|
</td>
|
|
<td class="text-center">
|
|
<span data-time="{{ container.start_time | isoformat }}"></span>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|