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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 2 12:09:36 CET 2010


Author: mattm
Date: 2010-03-02 12:09:36 +0100 (Tue, 02 Mar 2010)
New Revision: 6869

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/src/omp.xsl
Log:
	* src/html/src/omp.xsl (html-edit-note-form): Add NVT name row before
	constraint rows.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2010-03-02 11:02:59 UTC (rev 6868)
+++ trunk/gsa/ChangeLog	2010-03-02 11:09:36 UTC (rev 6869)
@@ -1,5 +1,10 @@
 2010-03-02  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* src/html/src/omp.xsl (html-edit-note-form): Add NVT name row before
+	constraint rows.
+
+2010-03-02  Matthew Mundell <matthew.mundell at intevation.de>
+
 	* src/html/src/omp.xsl (html-edit-note-form): Add details button.
 	(note [details]): Correct alignment.
 

Modified: trunk/gsa/src/html/src/omp.xsl
===================================================================
--- trunk/gsa/src/html/src/omp.xsl	2010-03-02 11:02:59 UTC (rev 6868)
+++ trunk/gsa/src/html/src/omp.xsl	2010-03-02 11:09:36 UTC (rev 6869)
@@ -4111,6 +4111,23 @@
 
         <table border="0" cellspacing="0" cellpadding="3" width="100%">
           <tr>
+            <td><b>NVT Name</b></td>
+            <td>
+              <xsl:variable name="nvt" select="get_notes_response/note/nvt"/>
+              <a href="?cmd=get_nvt_details&amp;oid={$nvt/@oid}">
+                <xsl:variable name="max" select="70"/>
+                <xsl:choose>
+                  <xsl:when test="string-length($nvt/name) &gt; $max">
+                    <xsl:value-of select="substring($nvt/name, 0, $max)"/>...
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$nvt/name"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </a>
+            </td>
+          </tr>
+          <tr>
             <td valign="top" width="125">
               Hosts
             </td>



More information about the Openvas-commits mailing list