mirror of
https://github.com/arx-research/libhalo.git
synced 2026-04-17 03:00:55 -04:00
48 lines
1.4 KiB
HTML
48 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="/assets/static/style.css" />
|
|
<title>HaLo Gateway Server</title>
|
|
</head>
|
|
<body>
|
|
<div class="container-lg">
|
|
<div class="box">
|
|
<h1>Statistics</h1>
|
|
{% if data|length > 0 %}
|
|
{% set prevMonth = none %}
|
|
{% set prevYear = none %}
|
|
{% endif %}
|
|
|
|
|
|
{% for item in data %}
|
|
{% if prevYear != item['year'] or prevMonth != item['month'] %}
|
|
<h3 class="margin-top-20px">{{ "0" + item['month'] if item['month'] < 10 else item['month'] }}.{{ item['year'] }}</h3>
|
|
<table>
|
|
<tr>
|
|
<th>Origin Domain</th>
|
|
<th>Total Connections</th>
|
|
<th>Total Processed Commands</th>
|
|
<th>Total Unique IPs</th>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td>{{ item['origin'] }}</td>
|
|
<td>{{ item['total_connections'] }}</td>
|
|
<td>{{ item['total_processed_commands'] }}</td>
|
|
<td>{{ item['total_unique_ips'] }}</td>
|
|
</tr>
|
|
|
|
{% set prevMonth = item['month'] %}
|
|
{% set prevYear = item['year'] %}
|
|
|
|
{% if data[loop.index + 1]['month'] != prevMonth and data[loop.index + 1]['year'] != prevYear %}
|
|
</table>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|