From 46838faab49589d4513cc2cdcd79d085cb215239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Geuken?= Date: Fri, 22 Jun 2018 12:38:56 +0200 Subject: [PATCH] [frontend] Fix rendering of openqa_job template OBS was not specifying the template when rendering openqa_jobs. This caused that the application did not find the partial and broke the staging project page. Explicitly setting the template to render solves this. Co-authored-by: David Kang --- .../views/webui/obs_factory/staging_projects/_problems.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/app/views/webui/obs_factory/staging_projects/_problems.html.erb b/src/api/app/views/webui/obs_factory/staging_projects/_problems.html.erb index 7caec54ad39..745ed05271c 100644 --- a/src/api/app/views/webui/obs_factory/staging_projects/_problems.html.erb +++ b/src/api/app/views/webui/obs_factory/staging_projects/_problems.html.erb @@ -1,6 +1,6 @@ <% problems = project.failed_openqa_jobs.map do |j| - content_tag(:li, "QA: #{render(j)}".html_safe, class: "openqa_job") + content_tag(:li, "QA: #{render(template: 'webui/obs_factory/openqa_jobs/_openqa_job', locals: { openqa_job: j })}".html_safe, class: "openqa_job") end -%>