From 27b65051bdad51a01b5ee7b2341e7d462461a3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com> Date: Thu, 11 Jul 2024 17:43:42 +0200 Subject: [PATCH] Disable the 'Run gitlab-rulez' button if not action is required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com> --- templates/index.html.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html.jinja2 b/templates/index.html.jinja2 index 800f9ff..236430c 100644 --- a/templates/index.html.jinja2 +++ b/templates/index.html.jinja2 @@ -187,7 +187,7 @@ <div> {% if meta.new_pipeline_url -%} - <a class="btn btn-primary" + <a class="btn btn-primary {{'disabled' if not summary.wrong_settings_count }}" href="{{- meta.new_pipeline_url -}}&var[TRIGGER_GITLAB_RULEZ]=apply ">Run gitlab-rulez</a> <a class="btn btn-primary {{'disabled' if not summary.total_updates_count }}" -- GitLab