Split pipeline description by double newlines on status page
Change-Id: If359702a60541cdaaeb273df3bea4c85f1b45eb1
This commit is contained in:
parent
87a801fb1d
commit
057aed1ee1
@ -490,10 +490,12 @@
|
||||
$header_div.append($heading);
|
||||
|
||||
if (typeof pipeline.description === 'string') {
|
||||
var descr = $('<small />')
|
||||
$.each( pipeline.description.split(/\r?\n\r?\n/), function(index, descr_part){
|
||||
descr.append($('<p />').text(descr_part));
|
||||
});
|
||||
$header_div.append(
|
||||
$('<p />').append(
|
||||
$('<small />').text(pipeline.description)
|
||||
)
|
||||
$('<p />').append(descr)
|
||||
);
|
||||
}
|
||||
return $header_div;
|
||||
|
Loading…
Reference in New Issue
Block a user