From a7c4add4396db968b58351d19bfe4bf5dc4095a0 Mon Sep 17 00:00:00 2001 From: Michal Konečný Date: May 18 2022 21:56:06 +0000 Subject: Add new monitoring options for release monitoring These new options are already supported and documented in the-new-hotness and will be available in next release. Link to documentation: https://the-new-hotness.readthedocs.io/en/latest/user-guide.html#notifications-settings Signed-off-by: Michal Konečný --- diff --git a/pagure/themes/srcfpo/templates/repo_master_sidebar.html b/pagure/themes/srcfpo/templates/repo_master_sidebar.html index 1f84c39..ee0524a 100644 --- a/pagure/themes/srcfpo/templates/repo_master_sidebar.html +++ b/pagure/themes/srcfpo/templates/repo_master_sidebar.html @@ -107,6 +107,46 @@ + +
+
+ +
+
+ Monitoring all +
+
+
+ +
+
+ +
+
+ Monitoring all and scratch builds +
+
+
+ +
+
+ +
+
+ Monitoring stable only +
+
+
+ +
+
+ +
+
+ Monitoring stable only and scratch builds +
+
+
{% else %} @@ -273,6 +313,18 @@ } else if (status === "monitoring-with-scratch") { _label = "Scratch builds" $("#monitoring-icon").attr("class", "fa fa-fw fa-eye") + } else if (status === "monitoring-all") { + _label = "Monitoring all" + $("#monitoring-icon").attr("class", "fa fa-fw fa-eye") + } else if (status === "monitoring-all-scratch") { + _label = "All - Scratch builds" + $("#monitoring-icon").attr("class", "fa fa-fw fa-eye") + } else if (status === "monitoring-stable") { + _label = "Monitoring stable" + $("#monitoring-icon").attr("class", "fa fa-fw fa-eye") + } else if (status === "monitoring-stable-scratch") { + _label = "Stable - Scratch builds" + $("#monitoring-icon").attr("class", "fa fa-fw fa-eye") } else { $("#monitoring-icon").attr("class", "fa fa-fw fa-eye-slash") } @@ -301,6 +353,16 @@ } else if (selectedValue === "monitoring_and_scratch_option_button") { _status = "monitoring-with-scratch" } + if (selectedValue === "monitoring_all_option_button") { + _status = "monitoring-all"; + } else if (selectedValue === "monitoring_all_and_scratch_option_button") { + _status = "monitoring-all-scratch" + } + if (selectedValue === "monitoring_stable_option_button") { + _status = "monitoring-stable"; + } else if (selectedValue === "monitoring_stable_and_scratch_option_button") { + _status = "monitoring-stable-scratch" + } $.ajax({ url: "{{ url_for('distgit_ns.anitya_patch_endpoint', repo=repo.name, namespace=repo.namespace) }}",