Split pipeline description by double newlines on status page

Change-Id: If359702a60541cdaaeb273df3bea4c85f1b45eb1
This commit is contained in:
Alexander Evseev 2015-10-28 17:17:04 +03:00
parent 87a801fb1d
commit 057aed1ee1

View File

@ -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;