diff --git a/swh/web/ui/templates/browse.html b/swh/web/ui/templates/browse.html index cf7f7e310..dafce151f 100644 --- a/swh/web/ui/templates/browse.html +++ b/swh/web/ui/templates/browse.html @@ -1,63 +1,56 @@ {% extends "layout.html" %} {% block title %}Browse{% endblock %} {% block content %}
- + - +
-
- You can refer to a content (i.e. a file that we have in our database) as its SHA1 or SHA256 - checksum. If you have files to input, you can drag and drop them below to have their hashes - calculated and searched in SWH. Files with the same checksum will automatically be ignored. -
-
- {% include 'includes/search-form.html' %} -
+
+ You can refer to a content (i.e. a file that we have in our database) as its SHA1 or SHA256 + checksum. If you have files to input, you can drag and drop them below to have their hashes + calculated and searched in SWH. Files with the same checksum will automatically be ignored. +
+
+ {% include 'includes/search-form.html' %} +
- {% include 'includes/home-revision.html' %} + {% include 'includes/home-revision.html' %}
- {% include 'includes/home-origin.html' %} + {% include 'includes/home-origin.html' %}
- +
- {% include 'includes/home-directory.html' %} + {% include 'includes/home-directory.html' %}
- +
{% endblock %} diff --git a/swh/web/ui/templates/home.html b/swh/web/ui/templates/home.html index 564deee83..2f95f4708 100644 --- a/swh/web/ui/templates/home.html +++ b/swh/web/ui/templates/home.html @@ -1,12 +1,12 @@ {% extends "layout.html" %} {% block title %}Home{% endblock %} {% block content %} {% endblock %} diff --git a/swh/web/ui/templates/includes/home-directory.html b/swh/web/ui/templates/includes/home-directory.html index 4183b1cbc..db41f713f 100644 --- a/swh/web/ui/templates/includes/home-directory.html +++ b/swh/web/ui/templates/includes/home-directory.html @@ -1,111 +1,111 @@
Advanced search
diff --git a/swh/web/ui/templates/includes/home-origin.html b/swh/web/ui/templates/includes/home-origin.html index 8ca5db0a6..7ff8a1040 100644 --- a/swh/web/ui/templates/includes/home-origin.html +++ b/swh/web/ui/templates/includes/home-origin.html @@ -1,57 +1,57 @@
Advanced search
diff --git a/swh/web/ui/templates/includes/home-revision.html b/swh/web/ui/templates/includes/home-revision.html index 043b1077a..d5f09cb39 100644 --- a/swh/web/ui/templates/includes/home-revision.html +++ b/swh/web/ui/templates/includes/home-revision.html @@ -1,66 +1,66 @@
Advanced search
diff --git a/swh/web/ui/templates/includes/search-form.html b/swh/web/ui/templates/includes/search-form.html index 51e0d7bf4..de1c45b2a 100644 --- a/swh/web/ui/templates/includes/search-form.html +++ b/swh/web/ui/templates/includes/search-form.html @@ -1,70 +1,70 @@

+ type="text" class="form-control" + name="q" + placeholder="SHA-1 or SHA-256 checksum" />
+ id="file-hash-input" + class="form-control" + multiple + name="filename" + value="" + style="display:none" + placeholder="File(s) to hash and search" />
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.
-{% for fname in ['lib/core.js', 'lib/lib-typedarrays.js', 'lib/sha256.js', 'js/search.js'] %} +{% for fname in ['lib/core.js', 'lib/lib-typedarrays.js', 'lib/sha1.js', 'lib/sha256.js', 'js/search.js'] %} {% endfor %} diff --git a/swh/web/ui/templates/layout.html b/swh/web/ui/templates/layout.html index 5abcdecdf..20973938a 100644 --- a/swh/web/ui/templates/layout.html +++ b/swh/web/ui/templates/layout.html @@ -1,57 +1,57 @@ {% block title %}{% endblock %} - The Software Heritage Archive
-

{{ self.title() }}

- +

{{ self.title() }}

+
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %} {% endfor %}
{% endif %} {% endwith %}
{% block content %}{% endblock %}