Skip to content

Commit

Permalink
#679 re-introduced #-column in HTML report and added title attributes…
Browse files Browse the repository at this point in the history
… for cloud and status symbols
  • Loading branch information
DirkMahler committed Feb 24, 2025
1 parent f0c0104 commit 39e673b
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions core/report/src/main/resources/META-INF/xsl/jqassistant-report.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
</h6>
<table>
<tr>
<th style="width:85%;">Constraint</th>
<th style="width:5%;">#</th>
<th style="width:80%;">Constraint</th>
<th style="width:5%;">Status</th>
<th style="width:5%;">Severity</th>
<th style="width:5%;">Count</th>
Expand Down Expand Up @@ -147,7 +148,8 @@
</h6>
<table>
<tr>
<th style="width:85%;">Concept</th>
<th style="width:5%;">#</th>
<th style="width:80%;">Concept</th>
<th style="width:5%;">Status</th>
<th style="width:5%;">Severity</th>
<th style="width:5%;">Count</th>
Expand Down Expand Up @@ -204,23 +206,29 @@
<xsl:when test="tns:status='failure'">failure</xsl:when>
<xsl:when test="tns:status='warning'">warning</xsl:when>
<xsl:when test="tns:status='success'">success</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:attribute>

<td>
<xsl:value-of select="position()"/>
</td>
<td>
<span class="ruleName" title="{tns:description/text()}"
onclick="javascript:toggleResult('{$ruleId}');">
<xsl:value-of select="@id"/>
</span>
</td>
<td class="right">
<xsl:if test="tns:verificationResult/tns:success='false'">&#127783;&#160;</xsl:if>
<xsl:choose>
<xsl:when test="tns:status='failure'">&#x2718;</xsl:when>
<xsl:when test="tns:status='warning'">&#x1F785;</xsl:when>
<xsl:when test="tns:status='success'">&#x2714;</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
<xsl:if test="tns:verificationResult/tns:success='false'">
<span title="Result verification failed">&#127783;&#160;</span>
</xsl:if>
<span title="Result evaluation according to warn-on-severity/fail-on-severity thresholds">
<xsl:choose>
<xsl:when test="tns:status='failure'">&#x2718;</xsl:when>
<xsl:when test="tns:status='warning'">&#x1F785;</xsl:when>
<xsl:when test="tns:status='success'">&#x2714;</xsl:when>
</xsl:choose>
</span>
</td>
<td class="right">
<xsl:value-of select="tns:severity/text()"/>
Expand Down Expand Up @@ -308,7 +316,6 @@
<xsl:when test="tns:status='failure'">failure</xsl:when>
<xsl:when test="tns:status='warning'">warning</xsl:when>
<xsl:when test="tns:status='success'">success</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="tns:status"/>
Expand Down

0 comments on commit 39e673b

Please sign in to comment.