diff --git a/swh/web/templates/includes/origin-visit-snapshot.html b/swh/web/templates/includes/origin-visit-snapshot.html index c4a712be1..ac04f1ed2 100644 --- a/swh/web/templates/includes/origin-visit-snapshot.html +++ b/swh/web/templates/includes/origin-visit-snapshot.html @@ -1,18 +1,24 @@
+ {% if origin_context.origin_info.url|slice:"0:4" == "http" %} + + {% endif %}

SWH origin: {{ origin_context.origin_info.url }}

+
diff --git a/swh/web/templates/origin.html b/swh/web/templates/origin.html index 911d52288..1bc9b5708 100644 --- a/swh/web/templates/origin.html +++ b/swh/web/templates/origin.html @@ -1,100 +1,105 @@ {% extends "browse.html" %} {% load static %} {% load swh_templatetags %} {% block swh-browse-before-panels %}
+ {% if origin_info.url|slice:"0:4" == "http" %} + + {% endif %}

SWH origin: {{ origin_info.url }}

{% for key, val in swh_object_metadata.items|dictsort:"0.lower" %} {% endfor %}
{% endblock %} {% block swh-browse-main-panel-content %}

{{ top_panel_text }}

Calendar

List

{% for visits_by_year in visits_splitted %}
{% for key, val in visits_by_year.items|dictsortreversed:"0.lower" %}
{% for visit in val %} {% endfor %}
{{ key }}
{{ visit.fmt_date }}
{% endfor %}
{% endfor %}
{% endblock %}