[Openvas-commits] r11590 - in trunk/gsa: . src/html

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 8 09:37:29 CEST 2011


Author: mattm
Date: 2011-09-08 09:37:29 +0200 (Thu, 08 Sep 2011)
New Revision: 11590

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/omp.xsl
Log:
	* src/html/omp.xsl (host): Add max prognosis threat.
	(report [assets]): Add prognosis column.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2011-09-08 07:22:37 UTC (rev 11589)
+++ trunk/gsa/ChangeLog	2011-09-08 07:37:29 UTC (rev 11590)
@@ -1,3 +1,8 @@
+2011-09-08  Matthew Mundell <matthew.mundell at greenbone.net>
+
+	* src/html/omp.xsl (host): Add max prognosis threat.
+	(report [assets]): Add prognosis column.
+
 2011-09-07  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
 
 	* src/html/omp.xsl (host): Moved Report info up as all

Modified: trunk/gsa/src/html/omp.xsl
===================================================================
--- trunk/gsa/src/html/omp.xsl	2011-09-08 07:22:37 UTC (rev 11589)
+++ trunk/gsa/src/html/omp.xsl	2011-09-08 07:37:29 UTC (rev 11590)
@@ -10429,7 +10429,25 @@
           <table class="gbntable" cellspacing="2" cellpadding="4">
             <tr class="gbntablehead2">
               <td rowspan="2">CPE</td>
-              <td colspan="4">Prognosis</td>
+              <td colspan="4">
+                Prognosis
+                <xsl:variable name="threat"
+                              select="detail[name = 'prognosis']/value"/>
+                <xsl:choose>
+                  <xsl:when test="$threat = 'High'">
+                    <img src="/img/high.png" alt="High" title="High"/>
+                  </xsl:when>
+                  <xsl:when test="$threat = 'Medium'">
+                    <img src="/img/medium.png" alt="Medium" title="Medium"/>
+                  </xsl:when>
+                  <xsl:when test="$threat = 'Low'">
+                    <img src="/img/low.png" alt="Low" title="Low"/>
+                  </xsl:when>
+                  <xsl:when test="$threat = 'Log'">
+                    <img src="/img/log.png" alt="Log" title="Log"/>
+                  </xsl:when>
+                </xsl:choose>
+              </td>
             </tr>
             <tr class="gbntablehead2">
               <td style="font-size:10px;">Threat</td>
@@ -11296,6 +11314,7 @@
       <td>Apps</td>
       <td>Reports</td>
       <td>Distance</td>
+      <td>Prognosis</td>
       <td>Actions</td>
     </tr>
     <xsl:for-each select="host">
@@ -11355,6 +11374,24 @@
           </xsl:choose>
         </td>
         <td>
+          <xsl:variable name="threat"
+                        select="detail[name = 'prognosis']/value"/>
+          <xsl:choose>
+            <xsl:when test="$threat = 'High'">
+              <img src="/img/high.png" alt="High" title="High"/>
+            </xsl:when>
+            <xsl:when test="$threat = 'Medium'">
+              <img src="/img/medium.png" alt="Medium" title="Medium"/>
+            </xsl:when>
+            <xsl:when test="$threat = 'Low'">
+              <img src="/img/low.png" alt="Low" title="Low"/>
+            </xsl:when>
+            <xsl:when test="$threat = 'Log'">
+              <img src="/img/log.png" alt="Log" title="Log"/>
+            </xsl:when>
+          </xsl:choose>
+        </td>
+        <td>
           <a href="/omp?cmd=get_report&amp;type=assets&amp;host={ip}&amp;pos=1&amp;search_phrase={../filters/phrase}&amp;levels={gsa:build-levels(../filters)}&amp;first_result={../hosts/@start}&amp;max_results={../hosts/@max}&amp;token={/envelope/token}"
              title="Asset Details" style="margin-left:3px;">
             <img src="/img/details.png" border="0" alt="Details"/>



More information about the Openvas-commits mailing list