diff --git a/var/www/templates/domains/card_img_domain.html b/var/www/templates/domains/card_img_domain.html index 4634a3ec..eff8825d 100644 --- a/var/www/templates/domains/card_img_domain.html +++ b/var/www/templates/domains/card_img_domain.html @@ -1,77 +1,88 @@ {% for dict_domain in l_dict_domains %} + {% if loop.index0 % 4 == 0 %} +
+ {% endif %} - {% if loop.index0 % 4 == 0 %} -
- {% endif %} - -
+
- + {% if dict_domain["is_tags_safe"] %} + + {% else %} + + + + + {% endif %}
-
- - {% if 'hl-start' in dict_domain %} - {{dict_domain["id"][:dict_domain['hl-start']]}}{{dict_domain["id"][dict_domain['hl-start']:dict_domain['hl-end']]}}{{dict_domain["id"][dict_domain['hl-end']:]}} - {% else %} - {{dict_domain["id"]}} - {% endif %} - +
+ + {% if 'hl-start' in dict_domain %} + {{dict_domain["id"][:dict_domain['hl-start']]}} + {{dict_domain["id"][dict_domain['hl-start']:dict_domain['hl-end']]}} + {{dict_domain["id"][dict_domain['hl-end']:]}} + {% else %} + {{dict_domain["id"]}} + {% endif %} + - {% if dict_domain["status"] %} - - UP + {% if dict_domain["status"] %} + + UP - {% else %} - - DOWN + {% else %} + + DOWN {% endif %} -
-
- - - - + +
+ + + + + + {{dict_domain["first_seen"]}} + + + + + {{dict_domain["first_seen"]}} + + + - {{dict_domain["first_seen"]}} - - - - - {{dict_domain["first_seen"]}} - - - - -
-

- - {% if dict_domain['languages'] %} - Languages: - {% for language in dict_domain['languages'] %} - {{ language }} - {% endfor %} - {% endif %} - -

+
+

+ + + {% if dict_domain['languages'] %} + Languages: + {% for language in dict_domain['languages'] %} + {{ language }} + {% endfor %} + {% endif %} + + +

-
- {% for tag in dict_domain['tags'] %} - - {{ tag }} - - {% endfor %} -
+
+ {% for tag in dict_domain['tags'] %} + + {{ tag }} + + {% endfor %} +
{% with obj_type='domain', obj_id=dict_domain["id"], obj_lvl=0%} {% include 'import_export/block_add_user_object_to_export_small.html' %} {% endwith %} -
- {% if loop.index0 % 4 == 3 %}
- {% endif %} + + {% if loop.index0 % 4 == 3 %} +
+ {% endif %} {% endfor %} diff --git a/var/www/templates/domains/domains_result_list.html b/var/www/templates/domains/domains_result_list.html index 3ef5b18f..10fa7ca3 100644 --- a/var/www/templates/domains/domains_result_list.html +++ b/var/www/templates/domains/domains_result_list.html @@ -172,14 +172,12 @@ function img_error(canevas_id) { blocks.addEventListener('change', pixelate_all, false); {% for dict_domain in l_dict_domains['list_elem'] %} - {% if 'screenshot' in dict_domain %} {% if dict_domain['is_tags_safe'] %} - var screenshot_url = "{{ url_for('objects_item.screenshot', filename="") }}{{dict_domain['screenshot']}}"; - {% else %} - var screenshot_url = "{{ url_for('static', filename='image/AIL.png') }}"; + {% if 'screenshot' in dict_domain %} + var screenshot_url = "{{ url_for('objects_item.screenshot', filename="") }}{{dict_domain['screenshot']}}"; + init_canevas_blurr_img("canvas_{{loop.index0}}", screenshot_url); + {% endif %} {% endif %} - init_canevas_blurr_img("canvas_{{loop.index0}}", screenshot_url); - {% endif %} {% endfor %}