diff --git a/swh/web/ui/templates/upload_and_search.html b/swh/web/ui/templates/upload_and_search.html index 6c9b3a85b..1c90f4b06 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 %}
File name | SHA1 checksum | Result | - {% for resp in responses %} + {% for res in search_res %}||||||
---|---|---|---|---|---|---|---|---|
{{ resp['filename'] }} | - {% if resp['found'] %} -{{ resp['sha1'] }} | + {% if res['filename'] is not none %} +{{ res['filename'] }} | + {% else %} +From text input | + {% endif %} + {% if res['found'] %} +{{ res['sha1'] }} | {% else %} - | {{ resp['sha1'] }} | +{{ res['sha1'] }} | {% endif %} |