From 263b95f5ffbaeda2e538a12f4ef675e9473386f5 Mon Sep 17 00:00:00 2001 From: David Kang Date: Wed, 20 Nov 2019 13:17:29 +0100 Subject: [PATCH] Fix collapse on problems list We have project names with `.`, that was causing the issue. Now apart from replacing `:` in the project name we also substitute `.` with `_`. Fix #8749. --- src/api/app/views/webui/staging/workflows/_problems.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/app/views/webui/staging/workflows/_problems.html.haml b/src/api/app/views/webui/staging/workflows/_problems.html.haml index 2ff6d77decf..df328fd8df3 100644 --- a/src/api/app/views/webui/staging/workflows/_problems.html.haml +++ b/src/api/app/views/webui/staging/workflows/_problems.html.haml @@ -1,6 +1,6 @@ :ruby max_shown = 5 - project_class = staging_project.name.tr(':', '_') + project_class = staging_project.name.tr(':.', '_') item_project_class = 'hidden-item-' + project_class checks_problems = staging_project.checks.failed build_problems = staging_project.problems