mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
Added crawl logs page
This commit is contained in:
38
templates/crawl_logs.html
Normal file
38
templates/crawl_logs.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "layout.html" %}
|
||||
{% set title = "Crawl logs - OD-Database" %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container-fluid">
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Server</th>
|
||||
<th>Website</th>
|
||||
<th>Status code</th>
|
||||
<th>File count</th>
|
||||
<th>Start</th>
|
||||
<th>End</th>
|
||||
<th>Index</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for server in logs %}
|
||||
{% for task_result in logs[server] %}
|
||||
<tr>
|
||||
<td>{{ server }}</td>
|
||||
<td><a href="/website/{{ task_result.website_id }}/">#{{ task_result.website_id }}</a></td>
|
||||
<td>{{ task_result.status_code }}</td>
|
||||
<td>{{ task_result.file_count }}</td>
|
||||
<td>{{ task_result.start_time | datetime_format }}</td>
|
||||
<td>{{ task_result.end_time | datetime_format }}</td>
|
||||
<td>{{ task_result.indexed_time | datetime_format }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{% endblock body %}
|
||||
Reference in New Issue
Block a user