diff --git a/swh/web/ui/templates/upload_and_search.html b/swh/web/ui/templates/upload_and_search.html index 6c9b3a85..1c90f4b0 100644 --- a/swh/web/ui/templates/upload_and_search.html +++ b/swh/web/ui/templates/upload_and_search.html @@ -1,98 +1,102 @@ {% extends "layout.html" %} {% block title %}Search SWH{% endblock %} {% block content %}

Drag and drop or click here to hash files and search for them. Your files will NOT be uploaded, hashing is done locally. Filesizes over 20Mb may be slow to process, use with care.
{% if search_stats is not none and search_stats %} {% endif %} - {% if responses is not none and responses %} + {% if search_res is not none %} - {% for resp in responses %} + {% for res in search_res %} - - {% if resp['found'] %} - + {% if res['filename'] is not none %} + + {% else %} + + {% endif %} + {% if res['found'] %} + {% else %} - + {% endif %} {% endfor %}
File name SHA1 checksum Result
{{ resp['filename'] }}{{ resp['sha1'] }}{{ res['filename'] }}From text input{{ res['sha1'] }} {{ resp['sha1'] }}{{ res['sha1'] }}
{% endif %} {% if messages is not none and messages %}
{% for message in messages %}
{{ message | safe }}
{% endfor %}
{% endif %}
{% endblock %}