majuna/app/portal/templates/report_blocks.html.j2

100 lines
2.9 KiB
Text
Raw Normal View History

2023-10-23 17:33:17 +01:00
<html>
<head>
<title>Bypass Censorship</title>
2023-10-29 21:18:40 +00:00
<link rel="stylesheet" href="/portal/static/print.css">
2023-10-23 17:33:17 +01:00
</head>
<body>
2023-10-29 21:18:40 +00:00
<div id="content">
<p class="noprint">For best results, print in landscape.</p>
<h1>Bypass Censorship</h1>
<h2>Last 24 hours</h2>
2023-10-23 17:33:17 +01:00
<table class="table table-striped">
<tr>
<th>Origin</th>
<th>Blocked</th>
<th>Detection Source</th>
<th>Lifetime</th>
</tr>
{% for block in blocked_today %}
<tr>
2023-10-29 21:18:40 +00:00
<td>{{ block.domain_name }}</td>
2023-10-23 17:33:17 +01:00
<td>{{ block.deprecated }}</td>
<td>{{ block.deprecation_reason }}</td>
<td>{{ block.deprecated - block.added }}</td>
</tr>
{% endfor %}
</table>
2023-10-29 21:18:40 +00:00
<div class="pagebreak"></div>
<h1>Bypass Censorship</h1>
2023-10-31 17:37:05 +00:00
<h2>Geography Censorship Report</h2>
2023-10-29 21:18:40 +00:00
<table>
<tr>
2023-10-31 17:37:05 +00:00
<th>Country</th>
<th>Risk Level</th>
2023-10-29 21:18:40 +00:00
<th>24h</th>
<th>72h</th>
</tr>
2023-10-31 17:37:05 +00:00
{% for country in countries %}
2023-10-29 21:18:40 +00:00
<tr style="font-weight: bold;">
2023-10-31 17:37:05 +00:00
<td>{{ country[0].country_code | country_flag }} {{ country[0].description }}</td>
<td
2023-10-29 21:18:40 +00:00
style="background-color:
2023-10-31 17:37:05 +00:00
{% if country[0].risk_level > 7 %}
2023-10-29 21:18:40 +00:00
red
2023-10-31 17:37:05 +00:00
{% elif country[0].risk_level > 5 %}
2023-10-29 21:18:40 +00:00
yellow
2023-10-31 17:37:05 +00:00
{% elif country[0].risk_level > 0 %}
2023-10-29 21:18:40 +00:00
green
{% else %}
lightgray
{% endif %};"
2023-10-31 17:37:05 +00:00
>{{ country[0].risk_level }}</td>
<td>{{ country[1] }}</td>
<td>{{ country[2] }}</td>
2023-10-29 21:18:40 +00:00
</tr>
{% endfor %}
</table>
<div class="pagebreak"></div>
<h1>Bypass Censorship</h1>
2023-10-31 17:37:05 +00:00
<h2>Origin Censorship Report</h2>
2023-10-29 21:18:40 +00:00
<table>
<tr>
2023-10-31 17:37:05 +00:00
<th>Origin</th>
<th>Description</th>
2023-10-29 21:18:40 +00:00
<th>24h</th>
<th>72h</th>
</tr>
2023-10-31 17:37:05 +00:00
{% for origin in origins %}
2023-10-29 21:18:40 +00:00
<tr style="font-weight: bold;">
2023-10-31 17:37:05 +00:00
<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"
2023-10-29 21:18:40 +00:00
style="background-color:
2023-10-31 17:37:05 +00:00
{% if origin[0].risk_level[country] > 15 %}
2023-10-29 21:18:40 +00:00
red
2023-10-31 17:37:05 +00:00
{% elif origin[0].risk_level[country] > 5 %}
2023-10-29 21:18:40 +00:00
yellow
2023-10-31 17:37:05 +00:00
{% elif origin[0].risk_level[country] > 0 %}
2023-10-29 21:18:40 +00:00
green
{% else %}
lightgray
{% endif %};"
2023-10-31 17:37:05 +00:00
>{{ origin[0].risk_level[country] }}</td>
2023-10-29 21:18:40 +00:00
</tr>
2023-10-31 17:37:05 +00:00
{% endfor %}
2023-10-29 21:18:40 +00:00
{% endfor %}
</table>
2023-10-31 17:37:05 +00:00
2023-10-23 17:33:17 +01:00
</div>
</body>
</html>