Skip to content

Commit d419d8c

Browse files
committed
Improve printed HTML report
Improvements in the printed report: * Do not show value of title attribute of abbr elements * Do not crop count of rule results and severity * Do not show "Scroll Back to top" and "(show)" links Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1640839
1 parent 43bb99a commit d419d8c

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

xsl/xccdf-report-impl.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ Authors:
891891
</div></td></tr>
892892
</xsl:for-each>
893893
<xsl:for-each select="$item/cdf:fix">
894-
<tr><td colspan="2"><div class="remediation">
894+
<tr class="noprint"><td colspan="2"><div class="remediation">
895895
<xsl:call-template name="show-fix">
896896
<xsl:with-param name="fix" select="."/>
897897
<xsl:with-param name="testresult" select="$testresult"/>
@@ -991,7 +991,7 @@ Authors:
991991
<xsl:with-param name="item" select="$benchmark"/>
992992
<xsl:with-param name="profile" select="$profile"/>
993993
</xsl:call-template>
994-
<a href="#result-details"><button type="button" class="btn btn-secondary">Scroll back to the first rule</button></a>
994+
<a href="#result-details"><button type="button" class="btn btn-secondary noprint">Scroll back to the first rule</button></a>
995995
</div>
996996
</xsl:template>
997997

xsl/xccdf-resources.xsl

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

xsl/xccdf-resources/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xsl/xccdf-resources/openscap.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ div.top-spacer-10
4848

4949
@media print
5050
{
51+
.noprint { display: none }
52+
.label { border: none; padding: 0px }
5153
.container { width: 100% }
52-
/* ":after" instead of "::after" is used for compatibility with IE8 */
53-
.rule-result abbr[title]:after { content: "" }
54-
.identifiers abbr[title]:after { content: "" }
55-
.identifiers a[href]:after { content: "" }
54+
abbr[title] { border: none; text-decoration: none }
55+
div.progress { overflow: visible ; height: auto }
56+
div.progress-bar { width: auto; float: none ; width: auto !important; text-align: left }
57+
div.panel-body { padding: 0px }
5658
}

0 commit comments

Comments
 (0)