diff --git a/swh/web/ui/templates/browse.html b/swh/web/ui/templates/browse.html index 64d7c6be..f15f2b86 100644 --- a/swh/web/ui/templates/browse.html +++ b/swh/web/ui/templates/browse.html @@ -1,49 +1,55 @@ {% extends "layout.html" %} {% block title %}Browse{% endblock %} {% block content %}
{% include 'includes/home-content.html' %}
+ + +
{% include 'includes/home-revision.html' %}
{% include 'includes/home-origin.html' %}
{% include 'includes/home-directory.html' %}
{% endblock %} diff --git a/swh/web/ui/templates/includes/home-search-symbol.html b/swh/web/ui/templates/includes/home-search-symbol.html new file mode 100644 index 00000000..b333073d --- /dev/null +++ b/swh/web/ui/templates/includes/home-search-symbol.html @@ -0,0 +1,27 @@ + + +
+ Permits to lookup symbols in content that SWH + indexed (i.e. a file that we have in our database). +
+
+ +
+
+ + + + +
+
+
diff --git a/swh/web/ui/templates/includes/search-form.html b/swh/web/ui/templates/includes/search-form.html index ae18deea..e69d6ec7 100644 --- a/swh/web/ui/templates/includes/search-form.html +++ b/swh/web/ui/templates/includes/search-form.html @@ -1,102 +1,74 @@



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.
-
- - -
- Permits to lookup symbols in content that SWH - indexed (i.e. a file that we have in our database). -
-
- -
-
- - - - -
-
-
{% 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/symbols.html b/swh/web/ui/templates/symbols.html index 0e3bb14e..317befdc 100644 --- a/swh/web/ui/templates/symbols.html +++ b/swh/web/ui/templates/symbols.html @@ -1,78 +1,78 @@ {% extends "layout.html" %} {% block title %}Search SWH{% endblock %} {% block content %}
- {% include 'includes/search-form.html' %} + {% include 'includes/home-search-symbol.html' %} {% if result is not none %}
{% for res in result %} {% endfor %}
name content kind language
name content kind language
{{ res['name'] | truncate(50) }} {{ res['sha1'] }} {{ res['kind'] }} {{ res['lang'] }}
{% if linknext is not none and linknext != '' %}
Next {% endif %} {% endif %} {% if message is not none and message != '' %}
{{ message | safe }}
{% endif %}
{% endblock %}