Skip to content

Commit

Permalink
Merge pull request #10 from honze-net/test
Browse files Browse the repository at this point in the history
Allow collapsing details of online hosts
  • Loading branch information
honze-net committed Feb 13, 2020
2 parents 7932844 + 5660eec commit b9cb7e4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions nmap-bootstrap.xsl
Expand Up @@ -36,6 +36,17 @@ Andreas Hontzia (@honze_net)
height: 180px;
background-color: #f5f5f5;
}
.clickable {
cursor: pointer;
}
.panel-heading > h3:before {
font-family: 'Glyphicons Halflings';
content: "\e114"; /* glyphicon-chevron-down */
padding-right: 1em;
}
.panel-heading.collapsed > h3:before {
content: "\e080"; /* glyphicon-chevron-right */
}
</style>
<title>Scan Report Nmap <xsl:value-of select="/nmaprun/@version"/></title>
</head>
Expand Down Expand Up @@ -131,10 +142,12 @@ Andreas Hontzia (@honze_net)
<h2 id="onlinehosts" class="target">Online Hosts</h2>
<xsl:for-each select="/nmaprun/host[status/@state='up']">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-heading clickable" data-toggle="collapse">
<xsl:attribute name="data-target">#<xsl:value-of select="translate(address/@addr, '.', '-')"/></xsl:attribute>
<h3 class="panel-title"><xsl:value-of select="address/@addr"/><xsl:if test="count(hostnames/hostname) > 0"> - <xsl:value-of select="hostnames/hostname/@name"/></xsl:if></h3>
</div>
<div class="panel-body">
<div class="panel-body collapse in">
<xsl:attribute name="id"><xsl:value-of select="translate(address/@addr, '.', '-')"/></xsl:attribute>
<xsl:if test="count(hostnames/hostname) > 0">
<h4>Hostnames</h4>
<ul>
Expand Down

0 comments on commit b9cb7e4

Please sign in to comment.