Skip to content

Commit

Permalink
[frontend] Fix rendering of openqa_job template
Browse files Browse the repository at this point in the history
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 <dkang@suse.com>
  • Loading branch information
bgeuken and David Kang committed Jun 22, 2018
1 parent c32e16a commit 46838fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
-%>
Expand Down

0 comments on commit 46838fa

Please sign in to comment.