Skip to content

Commit

Permalink
Merge pull request #14 from xebialabs-community/specialProjectNames
Browse files Browse the repository at this point in the history
Replace braces and dots
  • Loading branch information
jdewinne authored Apr 5, 2019
2 parents d13c4dd + 0e1ef4a commit 92b814b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
var projectStatuses = response.data.data.projectStatuses;
projectStatuses.forEach(function (projectStatus) {
$("#statuses").append('<h6><table width="95%"><tr><td width="75%">' + projectStatus.name + '</td><td align="right" width="25%"><img src="' + projectStatus.statusUrl +
'"/></td></tr></table></h6><div><div class="accordion" id="' + projectStatus.name.replace(/ /g, "_").replace(/\//g, "-") + '">');
'"/></td></tr></table></h6><div><div class="accordion" id="' + projectStatus.name.replace(/ |\(|\)|\./g, "_").replace(/\//g, "-") + '">');
projectStatus.statuses.forEach(function (statusData) {
var problemDetails = "";
var testFailureDetails = "";
Expand All @@ -68,7 +68,7 @@
}
});
}
$("#" + projectStatus.name.replace(/ /g, "_").replace(/\//g, "-")).append('<h6><table width="95%"><tr><td width="25%">' + statusData.name +
$("#" + projectStatus.name.replace(/ |\(|\)|\./g, "_").replace(/\//g, "-")).append('<h6><table width="95%"><tr><td width="25%">' + statusData.name +
'</td><td width="40%">' + statusData.statusText + '</td><td width="10%">' + (statusData.problemOccurrences.count > 0 ? statusData.problemOccurrences.count : '0') +
' <span style="color:red" title="Problems">⚠</span></td><td width="10%">' + (statusData.testOccurrences.successCount > 0 ? statusData.testOccurrences.successCount : '0') +
' <span style="color:green" title="Test Success">☑</span> - ' + (statusData.testOccurrences.failureCount > 0 ? statusData.testOccurrences.failureCount : '0') +
Expand Down

0 comments on commit 92b814b

Please sign in to comment.