Skip to content

Commit

Permalink
WINDUP-754 Group the identical hint labels with number - e.g. Oracle …
Browse files Browse the repository at this point in the history
…proprietary type reference 5×
  • Loading branch information
OndraZizka committed Nov 19, 2015
1 parent 051444a commit 7e11ed2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ h3.panel-title span.s {
.panel .panel-body .info h4:first-child { margin-top: 0; }
.panel .panel-body .info .rule-link.tag { font-variant-position: super; font-weight: normal; position: relative; top: -0.3ex; }

.java-application .notifications li.warning small { color: #888; font-style: italic; }


dl:last-child {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,18 @@
<h4 class="warns">Warnings: ${warnings} items</h4>
<#if warnings != 0 >
<ul class='notifications'>
<#assign map = {}>
<#list sourceReportModel.sourceFileModel.classificationModels.iterator() as classification>
<li class='warning clsf'>${classification.classification?html}</li>
<#assign count = (map[classification.classification]!0) + 1>
<#assign map += {classification.classification : count}>
</#list>
<#list sourceReportModel.sourceFileModel.inlineHints.iterator() as hintLine>
<li class='warning hint'>${hintLine.title?html}</li>
<#assign count = (map[hintLine.title]!0) + 1>
<#assign map += {hintLine.title : count}>
</#list>
<#list map?keys as key>
<#assign count = map[key]>
<li class="warning"> ${key?html} <small>${count}&#215;</small></li>
</#list>
</ul>
</#if>
Expand Down Expand Up @@ -269,7 +276,7 @@
<script src="resources/js/jquery-1.10.1.min.js"></script>
<script src="resources/libraries/flot/jquery.flot.min.js"></script>
<script src="resources/libraries/flot/jquery.flot.pie.min.js"></script>
<script src="resources/js/windup-overview.js"/>
<script src="resources/js/windup-overview.js"/>
<script src="resources/js/bootstrap.min.js"></script>

<@render_pie project=reportModel.projectModel recursive=true elementID="application_pie" includeTags=reportModel.includeTags excludeTags=reportModel.excludeTags />
Expand Down

0 comments on commit 7e11ed2

Please sign in to comment.