tooltip_message is frozen so dup it before sanitizing
It's sad that sanitizing is updating the string directly.
This commit is contained in:
parent
de1b64e83d
commit
8e9c787794
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@
|
||||||
- HasStatus::ORDERED_STATUSES.each do |build_status|
|
- HasStatus::ORDERED_STATUSES.each do |build_status|
|
||||||
- builds.select{|build| build.status == build_status}.each do |build|
|
- builds.select{|build| build.status == build_status}.each do |build|
|
||||||
.build-job{ class: sidebar_build_class(build, @build), data: { stage: build.stage } }
|
.build-job{ class: sidebar_build_class(build, @build), data: { stage: build.stage } }
|
||||||
- tooltip = sanitize(build.tooltip_message)
|
- tooltip = sanitize(build.tooltip_message.dup)
|
||||||
= link_to(project_job_path(@project, build), data: { toggle: 'tooltip', html: 'true', title: tooltip, container: 'body' }) do
|
= link_to(project_job_path(@project, build), data: { toggle: 'tooltip', html: 'true', title: tooltip, container: 'body' }) do
|
||||||
= sprite_icon('arrow-right', size:16, css_class: 'icon-arrow-right')
|
= sprite_icon('arrow-right', size:16, css_class: 'icon-arrow-right')
|
||||||
%span{ class: "ci-status-icon-#{build.status}" }
|
%span{ class: "ci-status-icon-#{build.status}" }
|
||||||
|
|
Loading…
Reference in a new issue