chg: Display size of rendered page

Fix #482
pull/485/head
Raphaël Vinot 2022-08-05 16:28:39 +02:00
parent 64c550919d
commit 474b3275d3
2 changed files with 2 additions and 1 deletions

View File

@ -186,6 +186,7 @@
<a href="{{ url_for('urlnode_rendered_content', tree_uuid=tree_uuid, node_uuid=url['url_object'].uuid) }}">
Download rendered HTML page
</a>
({{ sizeof_fmt(url['url_object'].rendered_html.getbuffer().nbytes)}})
</br>
<a href="{{ url_for('urlnode_urls_in_rendered_content', tree_uuid=tree_uuid, node_uuid=url['url_object'].uuid) }}">
Download URLs in rendered HTML page

View File

@ -146,7 +146,7 @@
{% if details and details[0] == False %}
<img src="/static/bomb.svg" title="Known malicious content in the response." width="21" height="21"/>
{%endif%}
<b>Body size</b>: {{ sizeof_fmt(ressource_size) }}
<b>Body size</b> (in the HTTP response): {{ sizeof_fmt(ressource_size) }}
{% if details %}
{% if details[0] %}
- This file is known <b>legitimate</b> on the following domains: {{ ', '.join(details[1]) }}.