diff --git a/swh/web/ui/templates/api.html b/swh/web/ui/templates/api.html index 08b5b76b3..da0c6c1b9 100644 --- a/swh/web/ui/templates/api.html +++ b/swh/web/ui/templates/api.html @@ -1,13 +1,13 @@ {% extends "layout.html" %} -{% block title %}Software Heritage API Overview{% endblock %} +{% block title %}API Overview{% endblock %} {% block content %}
{% for route, doc in doc_routes %}

{{ route }}

{% autoescape off %}{{ doc | safe_docstring_display }}{% endautoescape %}

{% endfor %}
{% endblock %} diff --git a/swh/web/ui/templates/home.html b/swh/web/ui/templates/home.html index daf5fbe14..564deee83 100644 --- a/swh/web/ui/templates/home.html +++ b/swh/web/ui/templates/home.html @@ -1,9 +1,12 @@ {% extends "layout.html" %} {% block title %}Home{% endblock %} {% block content %} + + {% endblock %} diff --git a/swh/web/ui/templates/layout.html b/swh/web/ui/templates/layout.html index 6e2f85022..5abcdecdf 100644 --- a/swh/web/ui/templates/layout.html +++ b/swh/web/ui/templates/layout.html @@ -1,37 +1,57 @@ - - - - - {% block title %}{% endblock %} - The Software Heritage Archive - - - - - - - - - - - -
-
-

{{ self.title() }}

+ + + + + {% block title %}{% endblock %} - The Software Heritage Archive + + + + + + + + + + + +
+
+

{{ self.title() }}

+ +
-
- {% with messages = get_flashed_messages(with_categories=true) %} + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} -
- {% for category, message in messages %} - - {% endfor %} -
+
+ {% for category, message in messages %} + + {% endfor %} +
{% endif %} - {% endwith %} -
- {% block content %}{% endblock %} -
- + {% endwith %} +
+ {% block content %}{% endblock %} +
+ diff --git a/swh/web/ui/templates/origin.html b/swh/web/ui/templates/origin.html index 8d7d80066..77c6cfc9f 100644 --- a/swh/web/ui/templates/origin.html +++ b/swh/web/ui/templates/origin.html @@ -1,40 +1,48 @@ {% extends "layout.html" %} {% block title %}Origin{% endblock %} {% block content %} {% if message is not none %} - {{ message }} +{{ message }} {% endif %} {% if origin is not none %} - - - - - -
Details on origin {{ origin['id'] }}: -
-
-
-
-
+ + +{% for fname in ['js/calendar.js', 'lib/jquery.flot.min.js', 'lib/jquery.flot.time.min.js', 'lib/jquery.flot.selection.min.js', 'lib/jquery.flot.tooltip.min.js'] %} + +{% endfor %} + + +

Origin visit history

+
+
+
+
- {% for key in ['type', 'lister', 'project', 'url'] %} - {% if origin[key] is not none %} -
-
{{ key }}
-
{{ origin[key] }}
-
- {% endif %} - {% endfor %} - {% if 'decoding_failures' in content %} -
-
(some decoding errors)
-
- {% endif %}
- + + +

Origin information

+
Details on origin {{ origin['id'] }}: + {% for key in ['type', 'lister', 'project', 'url'] %} + {% if origin[key] is not none %} +
+
{{ key }}
+
{{ origin[key] }}
+
+ {% endif %} + {% endfor %} + {% if 'decoding_failures' in content %} +
+
(some decoding errors)
+
+ {% endif %} +
+ + + {% endif %} {% endblock %}