From e1898616c62b19c846b2fd53b04390a3bcec72d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 30 Jul 2020 17:45:07 +0200 Subject: [PATCH] chg: Reorganize tree view --- website/web/static/tree.css | 8 ++++---- website/web/templates/hostname_popup.html | 20 ++++++++++---------- website/web/templates/macros.html | 2 +- website/web/templates/tree.html | 15 +++++++++------ 4 files changed, 24 insertions(+), 21 deletions(-) diff --git a/website/web/static/tree.css b/website/web/static/tree.css index bf9b3fb6..6c4fe9ba 100644 --- a/website/web/static/tree.css +++ b/website/web/static/tree.css @@ -69,7 +69,7 @@ #legend_container { position: fixed; bottom: 5px; - left: 5px; + right: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; @@ -79,7 +79,7 @@ #legend { position: fixed; bottom: 5px; - left: 5px; + right: 5px; background: white; border: 2px solid; padding-top: 5px; @@ -90,7 +90,7 @@ #tree-details_container { position: fixed; - bottom: 5px; + top: 5px; right: 5px; padding-top: 5px; padding-right: 5px; @@ -100,7 +100,7 @@ #tree-details { position: fixed; - bottom: 5px; + top: 5px; right: 5px; background: white; border: 2px solid; diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index 12af2ea0..44c315bd 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -53,7 +53,7 @@ {# Headers #}

{{ hostname }}

- + Download URLs as text
{# Start list of URLs #} @@ -61,15 +61,7 @@ {% for url in urls %} {# URL Display #}
  • -
    - {# Copy full URL to clipbard #} - +
    {# HTTPs or not #} {% if url['encrypted'] %} @@ -82,6 +74,14 @@ {%endif%} {# URL #} ... /{{ shorten_string(url['url_path'], 50)}} + {# Copy full URL to clipbard #} +
      diff --git a/website/web/templates/macros.html b/website/web/templates/macros.html index a407c9b3..b6e43cd1 100644 --- a/website/web/templates/macros.html +++ b/website/web/templates/macros.html @@ -113,7 +113,7 @@ {{ key }} {% endfor %} {% if urlnode.redirect_url %} - Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }} +
      Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }}
      {%endif%} {% else %} {{ key }} diff --git a/website/web/templates/tree.html b/website/web/templates/tree.html index 3c1c35ee..6c1aaa04 100644 --- a/website/web/templates/tree.html +++ b/website/web/templates/tree.html @@ -90,6 +90,12 @@
    • Unflag all nodes
    • +
    • + Download screenshot +
    • +
    • + Show screenshot +
    • {% if enable_mail_notification %}
    • Notify by mail @@ -152,7 +158,7 @@ Content type not set/unknown Content type not set/unknown
    -
    +
    @@ -187,14 +193,11 @@ {{k.title()}}: {{ v }}
    {%endfor%} {%endif%} - Screenshot: - Download - Show screenshot