feat: extend reports
This commit is contained in:
parent
c59b1f071f
commit
3e8b3a38c8
3 changed files with 237 additions and 8 deletions
|
@ -1,11 +1,13 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Bypass Censorship</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/portal/static/print.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h2>Blocked Today</h2>
|
||||
<div id="content">
|
||||
<p class="noprint">For best results, print in landscape.</p>
|
||||
<h1>Bypass Censorship</h1>
|
||||
<h2>Last 24 hours</h2>
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th>Origin</th>
|
||||
|
@ -15,13 +17,82 @@
|
|||
</tr>
|
||||
{% for block in blocked_today %}
|
||||
<tr>
|
||||
<td><a href="https://{{ block.domain_name }}">{{ block.domain_name }}</a> ({{ block.description }})</td>
|
||||
<td>{{ block.domain_name }}</td>
|
||||
<td>{{ block.deprecated }}</td>
|
||||
<td>{{ block.deprecation_reason }}</td>
|
||||
<td>{{ block.deprecated - block.added }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div class="pagebreak"></div>
|
||||
|
||||
<h1>Bypass Censorship</h1>
|
||||
<h2>Origin Censorship Report</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Origin</th>
|
||||
<th>Description</th>
|
||||
<th>24h</th>
|
||||
<th>72h</th>
|
||||
</tr>
|
||||
{% for origin in origins %}
|
||||
<tr style="font-weight: bold;">
|
||||
<td>{{ origin[0].domain_name }}</td>
|
||||
<td>{{ origin[0].description | truncate(25) }}</td>
|
||||
<td>{{ origin[1] }}</td>
|
||||
<td>{{ origin[2] }}</td>
|
||||
</tr>
|
||||
{% for country in origin[0].risk_level %}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ country | country_flag }} <span style="font-style: italic;">{{ country | country_name }}</span></td>
|
||||
<td colspan="2"
|
||||
style="background-color:
|
||||
{% if origin[0].risk_level[country] > 15 %}
|
||||
red
|
||||
{% elif origin[0].risk_level[country] > 10 %}
|
||||
yellow
|
||||
{% elif origin[0].risk_level[country] > 5 %}
|
||||
green
|
||||
{% else %}
|
||||
lightgray
|
||||
{% endif %};"
|
||||
>{{ origin[0].risk_level[country] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div class="pagebreak"></div>
|
||||
|
||||
<h1>Bypass Censorship</h1>
|
||||
<h2>Geography Censorship Report</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Country</th>
|
||||
<th>Risk Level</th>
|
||||
<th>24h</th>
|
||||
<th>72h</th>
|
||||
</tr>
|
||||
{% for country in countries %}
|
||||
<tr style="font-weight: bold;">
|
||||
<td>{{ country[0].country_code | country_flag }} {{ country[0].description }}</td>
|
||||
<td
|
||||
style="background-color:
|
||||
{% if country[0].risk_level > 7 %}
|
||||
red
|
||||
{% elif country[0].risk_level > 5 %}
|
||||
yellow
|
||||
{% elif country[0].risk_level > 2 %}
|
||||
green
|
||||
{% else %}
|
||||
lightgray
|
||||
{% endif %};"
|
||||
>{{ country[0].risk_level }}</td>
|
||||
<td>{{ country[1] }}</td>
|
||||
<td>{{ country[2] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue