Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-21928] Redesign of results page
- Table in buildaction/summary.jelly extracted to a separate file and reused in the results page. This table uses rows instead of columns so it is better readable and supports sorting, it also contains more information (delta). - "Errors Trend" removed, it is part of the summary. - "Cppcheck Engine versions" updated from one cell table to a simple paragraph. - summary.jelly renamed to details.jelly, the file contains details and not summary. - Wrapping of long lines is now possible in the details table to remove horizontal scroll bar. - Column headers renamed in the details table to look more like words instead of identifiers. - The tables have their widths instead of 100% width of the page. - Missing support for translations ${%Text} implemented. - Function getNumberNewErrorsFromPreviousBuild() is now unused so it was removed.
- Loading branch information
1 parent
8edec09
commit 9335f6c
Showing
5 changed files
with
103 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
src/main/resources/org/jenkinsci/plugins/cppcheck/CppcheckBuildAction/statistics.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<j:jelly xmlns:j="jelly:core" | ||
xmlns:d="jelly:define" | ||
xmlns:l="/lib/layout" | ||
xmlns:t="/lib/hudson" | ||
xmlns:f="/lib/form" | ||
xmlns:i="jelly:fmt"> | ||
|
||
<style type="text/css"> | ||
#cppcheckStatistics { width: auto; } | ||
#cppcheckStatistics .number { text-align: right; } | ||
</style> | ||
|
||
<table class="pane sortable" id="cppcheckStatistics"> | ||
<thead> | ||
<tr> | ||
<td class="pane-header">${%Severity}</td> | ||
<td class="pane-header">${%Count}</td> | ||
<td class="pane-header">${%Delta}</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td class="pane" data="6">${%Error}</td> | ||
<td class="pane number" data="${stat.numberErrorSeverity}">${stat.numberErrorSeverity}</td> | ||
<td class="pane number" data="${diff.numberErrorSeverity}">${diff.formatDiff(diff.numberErrorSeverity)}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="pane" data="5">${%Warning}</td> | ||
<td class="pane number" data="${stat.numberWarningSeverity}">${stat.numberWarningSeverity}</td> | ||
<td class="pane number" data="${diff.numberWarningSeverity}">${diff.formatDiff(diff.numberWarningSeverity)}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="pane" data="4">${%Style}</td> | ||
<td class="pane number" data="${stat.numberStyleSeverity}">${stat.numberStyleSeverity}</td> | ||
<td class="pane number" data="${diff.numberStyleSeverity}">${diff.formatDiff(diff.numberStyleSeverity)}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="pane" data="3">${%Performance}</td> | ||
<td class="pane number" data="${stat.numberPerformanceSeverity}">${stat.numberPerformanceSeverity}</td> | ||
<td class="pane number" data="${diff.numberPerformanceSeverity}">${diff.formatDiff(diff.numberPerformanceSeverity)}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="pane" data="2">${%Information}</td> | ||
<td class="pane number" data="${stat.numberInformationSeverity}">${stat.numberInformationSeverity}</td> | ||
<td class="pane number" data="${diff.numberInformationSeverity}">${diff.formatDiff(diff.numberInformationSeverity)}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="pane" data="1">${%No Category}</td> | ||
<td class="pane number" data="${stat.numberNoCategorySeverity}">${stat.numberNoCategorySeverity}</td> | ||
<td class="pane number" data="${diff.numberNoCategorySeverity}">${diff.formatDiff(diff.numberNoCategorySeverity)}</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr class="sortbottom"> | ||
<td class="pane-header" data="0">${%Total}</td> | ||
<td class="pane-header number" data="${stat.numberTotal}">${stat.numberTotal}</td> | ||
<td class="pane-header number" data="${diff.numberTotal}">${diff.formatDiff(diff.numberTotal)}</td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
|
||
</j:jelly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters