chg: Improve phishtank results rendering

pull/267/head
Raphaël Vinot 2021-09-28 15:30:41 +02:00
parent 2496b951e2
commit 88020028ac
1 changed files with 13 additions and 13 deletions

View File

@ -29,25 +29,25 @@
<h1 class="display-4">Phishtank</h1> <h1 class="display-4">Phishtank</h1>
<div> <div>
{% if phishtank.get('urls') %} {% if phishtank.get('urls') %}
<p>Phishtank flagged the URLs below as phishing:</p> <p class="lead">Phishtank flagged the URLs below as phishing</p>
<ul> <dl class="row">
{% for url, permaurl in phishtank['urls'].items() %} {% for url, permaurl in phishtank['urls'].items() %}
<li>{{ shorten_string(url, 150) }}: <a href="{{ permaurl }}">click to view it</a> on phishtank.</p></li> <dt class="col-sm-7">{{ shorten_string(url, 150) }}</dt>
<dd class="col-sm-3"><a href="{{ permaurl }}">View on phishtank</a></li></dd>
{% endfor %} {% endfor %}
</ul> </dl>
{% endif%} {% endif%}
{% if phishtank.get('ips_hits') %} {% if phishtank.get('ips_hits') %}
<p>The IPs below are in the tree and are flagged as phishing on Phishtank, might on on other URLs:</p> <p class="lead">The IPs below are in the tree and are flagged as phishing on Phishtank</p>
<ul>
{% for ip, entries in phishtank['ips_hits'].items() %} {% for ip, entries in phishtank['ips_hits'].items() %}
<li>{{ ip }}: <p>{{ ip }}</p>
<ul> <dl class="row">
{% for related_url, permaurl in entries %} {% for related_url, permaurl in entries %}
<li>{{ shorten_string(related_url, 150) }}: <a href="{{ permaurl }}">click to view it</a> on phishtank.</p></li> <dt class="col-sm-7">{{ shorten_string(related_url, 150) }}</dt>
{% endfor %} <dd class="col-sm-3"><a href="{{ permaurl }}">View on phishtank</a></li></dd>
</ul> {% endfor %}
</li> </dl>
{% endfor %} {% endfor %}
{% endif%} {% endif%}
</div> </div>