chg: Display size of rendered page

Fix #482
pull/497/head
Raphaël Vinot 2022-08-05 16:28:39 +02:00
parent c9a5adc066
commit 13eaa72a57
2 changed files with 1 additions and 2 deletions

View File

@ -187,7 +187,6 @@
Download {{url['url_object'].downloaded_filename}} Download {{url['url_object'].downloaded_filename}}
</a> </a>
({{sizeof_fmt(url['url_object'].downloaded_filesize)}}) ({{sizeof_fmt(url['url_object'].downloaded_filesize)}})
ici
{% else %} {% else %}
{% if url['url_object'].rendered_html %} {% if url['url_object'].rendered_html %}
<a href="{{ url_for('urlnode_rendered_content', tree_uuid=tree_uuid, node_uuid=url['url_object'].uuid) }}"> <a href="{{ url_for('urlnode_rendered_content', tree_uuid=tree_uuid, node_uuid=url['url_object'].uuid) }}">

View File

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