From e19a3b3e630ed8cacd492e5c36ffa59c3cdfac78 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Mon, 3 Feb 2020 09:37:08 +0100 Subject: [PATCH] fix: [Domain explorer UI] fix daterange pagination links --- .../crawler_splash/domain_explorer.html | 3 + .../templates/domains/domain_explorer.html | 239 ------------------ 2 files changed, 3 insertions(+), 239 deletions(-) delete mode 100644 var/www/templates/domains/domain_explorer.html diff --git a/var/www/templates/crawler/crawler_splash/domain_explorer.html b/var/www/templates/crawler/crawler_splash/domain_explorer.html index 007da8f0..16595014 100644 --- a/var/www/templates/crawler/crawler_splash/domain_explorer.html +++ b/var/www/templates/crawler/crawler_splash/domain_explorer.html @@ -83,6 +83,9 @@ {%else%} {% set target_url=url_for('crawler_splash.domains_explorer_web') + "?domain_type=regular" %} {%endif%} + {%if 'date_from' in dict_data %} + {% set target_url = target_url + '&date_from=' + dict_data['date_from'] + '&date_to=' + dict_data['date_to'] %} + {%endif%} {% include 'pagination.html' %} {% endwith %} {%endif%} diff --git a/var/www/templates/domains/domain_explorer.html b/var/www/templates/domains/domain_explorer.html deleted file mode 100644 index ec6211c7..00000000 --- a/var/www/templates/domains/domain_explorer.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - Show Domain - AIL - - - - - - - - - - - - - - - {% include 'nav_bar.html' %} - -
-
- - {% include 'crawler/menu_sidebar.html' %} - -
- -
-
-
-
- -
-
- -
-
- -
-
-
-
- - {% for dict_domain in dict_data['list_elem'] %} - - {% if loop.index0 % 4 == 0 %} -
- {% endif %} - -
-
- - -
-
-
- - {{dict_domain["id"]}} - -
-

- - First seen: {{dict_domain["first_seen"]}}
- Last_seen: {{dict_domain["first_seen"]}}
- Ports: {{dict_domain["ports"]}} -
-

- Status: - {% if dict_domain["status"] %} - - - UP - - {% else %} - - - DOWN - - {% endif %} -
- {% for tag in dict_domain['tags'] %} - - {{ tag }} - - {% endfor %} -
-
-
- - - {% if loop.index0 % 4 == 3 %} -
- {% endif %} - - {% endfor %} - - {% if dict_data['list_elem']|length % 4 != 0 %} -
- {% endif %} - -
-
- - {%if 'list_elem' in dict_data%} - {% with page=dict_data['page'], nb_page_max=dict_data['nb_pages'], nb_first_elem=dict_data['nb_first_elem'], nb_last_elem=dict_data['nb_last_elem'], nb_all_elem=dict_data['nb_all_elem'] %} - {% set object_name="domain" %} - {%if domain_type=='onion'%} - {% set target_url=url_for('crawler_splash.domains_explorer_onion') + "?domain_type=onion" %} - {%else%} - {% set target_url=url_for('crawler_splash.domains_explorer_web') + "?domain_type=regular" %} - {%endif%} - {% include 'pagination.html' %} - {% endwith %} - {%endif%} - - - - - -
-
- - - - - - - - - - -