From f29ffd84b68c0896eb0bf96214decf0e5945fcd5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 03 2019 16:22:28 +0000 Subject: Small HTML fixes Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/themes/srcfpo/templates/repo_master_sidebar.html b/pagure/themes/srcfpo/templates/repo_master_sidebar.html index 34f43c3..5d31d3a 100644 --- a/pagure/themes/srcfpo/templates/repo_master_sidebar.html +++ b/pagure/themes/srcfpo/templates/repo_master_sidebar.html @@ -79,7 +79,7 @@
- +
No-Monitoring @@ -89,20 +89,20 @@
- +
- Monitoring + Monitoring
- +
- monitoring and scratch builds + monitoring and scratch builds
@@ -140,31 +140,31 @@ {% if g.authenticated %} $(".monitoring-menu a").click(function(){ - var selectedValue = $(this).attr('id'); - var _status = "no-monitoring"; - if (selectedValue === "monitoring_option_button") { - _status = "monitoring"; - } else if (selectedValue === "monitoring_and_scratch_option_button") { - _status = "monitoring-with-scratch" - } - - $.ajax({ - url: "{{ url_for('distgit_ns.anitya_patch_endpoint', repo=repo.name, namespace=repo.namespace) }}", - type: 'PATCH', - data: { - anitya_status: _status, - }, - dataType: 'json', - success: function(res) { - set_up_monitoring(res.monitoring) - }, - error: function() { - alert('Unable to change the monitoring status! ' + error); - } - }); + var selectedValue = $(this).attr('id'); + var _status = "no-monitoring"; + if (selectedValue === "monitoring_option_button") { + _status = "monitoring"; + } else if (selectedValue === "monitoring_and_scratch_option_button") { + _status = "monitoring-with-scratch" + } + $.ajax({ + url: "{{ url_for('distgit_ns.anitya_patch_endpoint', repo=repo.name, namespace=repo.namespace) }}", + type: 'PATCH', + data: { + anitya_status: _status, + }, + dataType: 'json', + success: function(res) { + set_up_monitoring(res.monitoring) + }, + error: function() { + alert('Unable to change the monitoring status! ' + error); + } + }); }); {% endif %} + }); {% endif %}