diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index 8b4e6bdb..dc8222b9 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -50,7 +50,7 @@

@@ -157,11 +157,11 @@
{% endif %} {% if url['url_object'].security_details %} -
+

@@ -177,41 +177,53 @@
{% endif %}
    - {% if url['url_object'].posted_data or url['cookies_sent'] %}
  • -

    Request {{ request_cookies_icon(url['url_object'], tree_uuid) }}

    +

    Request ({{url['url_object'].request.get('method')}}) {{ request_cookies_icon(url['url_object'], tree_uuid) }}


    +
    +
    +

    + +

    +
    +
    +
      + {% for h in url['url_object'].request['headers'] %} +
    • {{h['name']}}: {{h['value']}}
    • + {% endfor%} +
    +
    +
    +
    + {% if url['cookies_sent'] %} +
    +

    + +

    +
    +
    + {{ indexed_cookies("List of cookies sent in the request", "Node setting this cookie", url['cookies_sent']) }} +
    +
    +
    + {% endif %} +
    -
    {% if url['url_object'].posted_data %} -
    +
    This is a POST request, - Download posted data + download content
    {% if url['url_object'].posted_data is string %} Posted data size: {{ sizeof_fmt(url['url_object'].posted_data|length) }} {% endif %}
    {% endif %} - - {% if url['cookies_sent'] %} -
    -

    - -

    -
    -
    - {{ indexed_cookies("List of cookies sent in the request", "Node setting this cookie", url['cookies_sent']) }} -
    -
    -
    - {% endif %} -
  • - {% endif %}
  • {# Details of the response #} @@ -267,59 +279,73 @@
{% endif%} - {% if url['url_object'].hhhash %} -

- - Show other captures with the same HTTP Headers Hash - -

- {% endif %} - -
- {% if url['embedded_ressources'] %} - {# Details on embedded resources #} -
- -
-
-
- {% for hash, details in url['embedded_ressources'].items() %} -
- {{hash_info(tree_uuid, url['url_object'].uuid, details['type'], hash, - details['body_size'], details.get('hash_freq', 0), - has_pandora, - details.get('legitimacy'), - details.get('known_content')) }}
- {% if enable_context_by_users %} - {{ context_form(tree_uuid, url['url_object'].uuid, hash, 'hostnode_popup') }} - {% endif %} -
- {% endfor %} -
-
- {% endif %} - - {% if url['cookies_received'] %} -
-

- -

-
-
- {{ indexed_cookies("This response contains 3rd party cookies:", "Node sending this cookie", url['cookies_received']['3rd_party']) }} - {{ indexed_cookies("Cookies, sent somewhere in the capture", "Node sending this cookie", url['cookies_received']['sent']) }} - {{ indexed_cookies("Cookies, never sent", "", url['cookies_received']['not_sent']) }} +
+ {% if url['embedded_ressources'] %} + {# Details on embedded resources #} +
+

+ +

+
+
+ {% for hash, details in url['embedded_ressources'].items() %} +
+ {{hash_info(tree_uuid, url['url_object'].uuid, details['type'], hash, + details['body_size'], details.get('hash_freq', 0), + has_pandora, + details.get('legitimacy'), + details.get('known_content')) }}
+ {% if enable_context_by_users %} + {{ context_form(tree_uuid, url['url_object'].uuid, hash, 'hostnode_popup') }} + {% endif %} +
+ {% endfor %} +
+ {% endif %} +
+

+ +

+
+
+ {% if url['url_object'].hhhash %} +

+ + Show other captures with the same HTTP Headers Hash + +

+ {% endif %} +
    + {% for h in url['url_object'].response['headers'] %} +
  • {{h['name']}}: {{h['value']}}
  • + {% endfor%} +
+
+
+
+ {% if url['cookies_received'] %} +
+

+ +

+
+
+ {{ indexed_cookies("This response contains 3rd party cookies:", "Node sending this cookie", url['cookies_received']['3rd_party']) }} + {{ indexed_cookies("Cookies, sent somewhere in the capture", "Node sending this cookie", url['cookies_received']['sent']) }} + {{ indexed_cookies("Cookies, never sent", "", url['cookies_received']['not_sent']) }} +
+
+
+ {% endif %}
- {% endif %} -
diff --git a/website/web/templates/macros.html b/website/web/templates/macros.html index c6e1203d..eb88ed63 100644 --- a/website/web/templates/macros.html +++ b/website/web/templates/macros.html @@ -249,12 +249,10 @@

{% endif %} - {% if has_pandora %} {{ pandora_submit(tree_uuid, urlnode_uuid, hash) }}
{% endif %} - {% endmacro %} {% macro hash_icon(tree_uuid, urlnode_uuid, mimetype, hash) %}