diff --git a/swh/web/browse/snapshot_context.py b/swh/web/browse/snapshot_context.py --- a/swh/web/browse/snapshot_context.py +++ b/swh/web/browse/snapshot_context.py @@ -937,7 +937,7 @@ return render( request, - "browse/directory.html", + "browse-directory.html", { "heading": heading, "swh_object_name": "Directory", @@ -1095,7 +1095,7 @@ return render( request, - "browse/revision-log.html", + "browse-revision-log.html", { "heading": heading, "swh_object_name": "Revisions history", @@ -1217,7 +1217,7 @@ return render( request, - "browse/branches.html", + "browse-branches.html", { "heading": heading, "swh_object_name": "Branches", @@ -1360,7 +1360,7 @@ return render( request, - "browse/releases.html", + "browse-releases.html", { "heading": heading, "top_panel_visible": False, diff --git a/swh/web/templates/browse/branches.html b/swh/web/browse/templates/browse-branches.html rename from swh/web/templates/browse/branches.html rename to swh/web/browse/templates/browse-branches.html --- a/swh/web/templates/browse/branches.html +++ b/swh/web/browse/templates/browse-branches.html @@ -1,7 +1,7 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2019 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -13,7 +13,7 @@ {% block swh-browse-content %}
- {% include "includes/branch-search.html" %} + {% include "./includes/branch-search.html" %}
diff --git a/swh/web/templates/browse/content.html b/swh/web/browse/templates/browse-content.html rename from swh/web/templates/browse/content.html rename to swh/web/browse/templates/browse-content.html --- a/swh/web/templates/browse/content.html +++ b/swh/web/browse/templates/browse-content.html @@ -1,13 +1,13 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2018 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% block swh-browse-content %} -{% include "includes/top-navigation.html" %} -{% include "includes/content-display.html" %} +{% include "./includes/top-navigation.html" %} +{% include "./includes/content-display.html" %} {% endblock %} diff --git a/swh/web/templates/browse/directory.html b/swh/web/browse/templates/browse-directory.html rename from swh/web/templates/browse/directory.html rename to swh/web/browse/templates/browse-directory.html --- a/swh/web/templates/browse/directory.html +++ b/swh/web/browse/templates/browse-directory.html @@ -1,17 +1,17 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2018 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% block swh-browse-content %} -{% include "includes/top-navigation.html" %} -{% include "includes/directory-display.html" %} +{% include "./includes/top-navigation.html" %} +{% include "./includes/directory-display.html" %} {% endblock %} {% block swh-browse-after-content %} -{% include "includes/readme-display.html" %} +{% include "./includes/readme-display.html" %} {% endblock %} diff --git a/swh/web/templates/browse/help.html b/swh/web/browse/templates/browse-help.html rename from swh/web/templates/browse/help.html rename to swh/web/browse/templates/browse-help.html diff --git a/swh/web/templates/browse/origin-visits.html b/swh/web/browse/templates/browse-origin-visits.html rename from swh/web/templates/browse/origin-visits.html rename to swh/web/browse/templates/browse-origin-visits.html diff --git a/swh/web/templates/browse/release.html b/swh/web/browse/templates/browse-release.html rename from swh/web/templates/browse/release.html rename to swh/web/browse/templates/browse-release.html --- a/swh/web/templates/browse/release.html +++ b/swh/web/browse/templates/browse-release.html @@ -1,7 +1,7 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2019 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -10,7 +10,7 @@ {% load swh_templatetags %} {% block swh-browse-content %} -{% include "includes/top-navigation.html" %} +{% include "./includes/top-navigation.html" %}
Release {{ swh_object_metadata.name }} created by {{ swh_object_metadata.author_url }} on {{ swh_object_metadata.date }} diff --git a/swh/web/templates/browse/releases.html b/swh/web/browse/templates/browse-releases.html rename from swh/web/templates/browse/releases.html rename to swh/web/browse/templates/browse-releases.html --- a/swh/web/templates/browse/releases.html +++ b/swh/web/browse/templates/browse-releases.html @@ -1,7 +1,7 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2021 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -12,7 +12,7 @@ {% block swh-browse-content %}
- {% include "includes/branch-search.html" %} + {% include "./includes/branch-search.html" %}
diff --git a/swh/web/templates/browse/revision-log.html b/swh/web/browse/templates/browse-revision-log.html rename from swh/web/templates/browse/revision-log.html rename to swh/web/browse/templates/browse-revision-log.html --- a/swh/web/templates/browse/revision-log.html +++ b/swh/web/browse/templates/browse-revision-log.html @@ -1,7 +1,7 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2019 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -17,11 +17,11 @@ {% block swh-browse-content %} {% if snapshot_context %} - {% include "includes/top-navigation.html" %} + {% include "./includes/top-navigation.html" %} {% endif %} {% if snapshot_context and snapshot_context.is_empty %} - {% include "includes/empty-snapshot.html" %} + {% include "./includes/empty-snapshot.html" %} {% else %}
diff --git a/swh/web/templates/browse/revision.html b/swh/web/browse/templates/browse-revision.html rename from swh/web/templates/browse/revision.html rename to swh/web/browse/templates/browse-revision.html --- a/swh/web/templates/browse/revision.html +++ b/swh/web/browse/templates/browse-revision.html @@ -1,7 +1,7 @@ {% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2019 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -57,11 +57,11 @@
- {% include "includes/top-navigation.html" %} + {% include "./includes/top-navigation.html" %} {% if content_size %} - {% include "includes/content-display.html" %} + {% include "./includes/content-display.html" %} {% else %} - {% include "includes/directory-display.html" %} + {% include "./includes/directory-display.html" %} {% endif %}
@@ -107,5 +107,5 @@ {% endblock %} {% block swh-browse-after-content %} -{% include "includes/readme-display.html" %} +{% include "./includes/readme-display.html" %} {% endblock %} diff --git a/swh/web/templates/browse/search.html b/swh/web/browse/templates/browse-search.html rename from swh/web/templates/browse/search.html rename to swh/web/browse/templates/browse-search.html --- a/swh/web/templates/browse/search.html +++ b/swh/web/browse/templates/browse-search.html @@ -1,7 +1,7 @@ -{% extends "./layout.html" %} +{% extends "./browse.html" %} {% comment %} -Copyright (C) 2017-2020 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -15,7 +15,7 @@ {% block browse-content %} -{% include "includes/origin-search-form.html" %} +{% include "./includes/origin-search-form.html" %}
-{% include "includes/vault-common.html" %} +{% include "./includes/vault-common.html" %} {% endblock %} +{% endblock %} diff --git a/swh/web/templates/includes/branch-search.html b/swh/web/browse/templates/includes/branch-search.html rename from swh/web/templates/includes/branch-search.html rename to swh/web/browse/templates/includes/branch-search.html diff --git a/swh/web/templates/includes/breadcrumbs.html b/swh/web/browse/templates/includes/breadcrumbs.html rename from swh/web/templates/includes/breadcrumbs.html rename to swh/web/browse/templates/includes/breadcrumbs.html diff --git a/swh/web/templates/includes/content-display.html b/swh/web/browse/templates/includes/content-display.html rename from swh/web/templates/includes/content-display.html rename to swh/web/browse/templates/includes/content-display.html --- a/swh/web/templates/includes/content-display.html +++ b/swh/web/browse/templates/includes/content-display.html @@ -7,10 +7,10 @@ {% load swh_templatetags %} -{% include "includes/revision-info.html" %} +{% include "./revision-info.html" %} {% if snapshot_context and snapshot_context.is_empty %} - {% include "includes/empty-snapshot.html" %} + {% include "./empty-snapshot.html" %} {% else %} {% if not iframe_mode %}
diff --git a/swh/web/templates/includes/directory-display.html b/swh/web/browse/templates/includes/directory-display.html rename from swh/web/templates/includes/directory-display.html rename to swh/web/browse/templates/includes/directory-display.html --- a/swh/web/templates/includes/directory-display.html +++ b/swh/web/browse/templates/includes/directory-display.html @@ -1,16 +1,16 @@ {% comment %} -Copyright (C) 2017-2021 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% if not iframe_mode %} - {% include "includes/revision-info.html" %} + {% include "./revision-info.html" %} {% endif %} {% if snapshot_context and snapshot_context.is_empty %} - {% include "includes/empty-snapshot.html" %} + {% include "./empty-snapshot.html" %} {% elif dirs|length > 0 or files|length > 0 %}
diff --git a/swh/web/templates/includes/empty-snapshot.html b/swh/web/browse/templates/includes/empty-snapshot.html rename from swh/web/templates/includes/empty-snapshot.html rename to swh/web/browse/templates/includes/empty-snapshot.html diff --git a/swh/web/templates/includes/origin-search-form.html b/swh/web/browse/templates/includes/origin-search-form.html rename from swh/web/templates/includes/origin-search-form.html rename to swh/web/browse/templates/includes/origin-search-form.html diff --git a/swh/web/templates/includes/readme-display.html b/swh/web/browse/templates/includes/readme-display.html rename from swh/web/templates/includes/readme-display.html rename to swh/web/browse/templates/includes/readme-display.html diff --git a/swh/web/templates/includes/revision-info.html b/swh/web/browse/templates/includes/revision-info.html rename from swh/web/templates/includes/revision-info.html rename to swh/web/browse/templates/includes/revision-info.html diff --git a/swh/web/templates/includes/show-metadata.html b/swh/web/browse/templates/includes/show-metadata.html rename from swh/web/templates/includes/show-metadata.html rename to swh/web/browse/templates/includes/show-metadata.html diff --git a/swh/web/templates/includes/show-swhids.html b/swh/web/browse/templates/includes/show-swhids.html rename from swh/web/templates/includes/show-swhids.html rename to swh/web/browse/templates/includes/show-swhids.html diff --git a/swh/web/templates/includes/snapshot-context.html b/swh/web/browse/templates/includes/snapshot-context.html rename from swh/web/templates/includes/snapshot-context.html rename to swh/web/browse/templates/includes/snapshot-context.html diff --git a/swh/web/templates/includes/take-new-snapshot.html b/swh/web/browse/templates/includes/take-new-snapshot.html rename from swh/web/templates/includes/take-new-snapshot.html rename to swh/web/browse/templates/includes/take-new-snapshot.html diff --git a/swh/web/templates/includes/top-navigation.html b/swh/web/browse/templates/includes/top-navigation.html rename from swh/web/templates/includes/top-navigation.html rename to swh/web/browse/templates/includes/top-navigation.html --- a/swh/web/templates/includes/top-navigation.html +++ b/swh/web/browse/templates/includes/top-navigation.html @@ -1,5 +1,5 @@ {% comment %} -Copyright (C) 2017-2020 The Software Heritage developers +Copyright (C) 2017-2022 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information @@ -104,7 +104,7 @@ {% endif %}
- {% include "includes/breadcrumbs.html" %} + {% include "./breadcrumbs.html" %}
@@ -126,17 +126,17 @@ {% endif %} {% if show_actions %} {% if not snapshot_context or not snapshot_context.is_empty %} - {% include "includes/vault-create-tasks.html" %} + {% include "./vault-create-tasks.html" %} {% endif %} {% if "swh.web.save_code_now" in SWH_DJANGO_APPS %} - {% include "includes/take-new-snapshot.html" %} + {% include "./take-new-snapshot.html" %} {% endif %} - {% include "includes/show-metadata.html" %} + {% include "./show-metadata.html" %} {% endif %}
-{% include "includes/show-swhids.html" %} +{% include "./show-swhids.html" %}