diff --git a/assets/src/bundles/origin/visits-reporting.js b/assets/src/bundles/origin/visits-reporting.js --- a/assets/src/bundles/origin/visits-reporting.js +++ b/assets/src/bundles/origin/visits-reporting.js @@ -1,5 +1,5 @@ /** - * Copyright (C) 2018-2021 The Software Heritage developers + * Copyright (C) 2018-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 @@ -131,6 +131,11 @@ } }); + if (!firstFullVisit) { + $('#swh-full-visits-different-snapshots').prop('disabled', true); + $('#swh-full-visits').prop('disabled', true); + } + if ($('#swh-full-visits').prop('checked')) { showFullVisits(); } else if ($('#swh-all-visits').prop('checked')) { diff --git a/swh/web/templates/browse/origin-visits.html b/swh/web/templates/browse/origin-visits.html --- a/swh/web/templates/browse/origin-visits.html +++ b/swh/web/templates/browse/origin-visits.html @@ -1,7 +1,7 @@ {% 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 @@ -45,21 +45,27 @@
- -
- -
- -