Skip to content

Commit

Permalink
Allow collapsing details of online hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthirian committed Feb 1, 2020
1 parent 230e8c2 commit 96195fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nmap-bootstrap.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,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" data-toggle="collapse">
<xsl:attribute name="href">#<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 96195fb

Please sign in to comment.