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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 17 17:55:12 CET 2009


Author: mattm
Date: 2009-12-17 17:55:11 +0100 (Thu, 17 Dec 2009)
New Revision: 6179

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/html/src/omp.xsl
Log:
	Improve cross referencing.

	* src/html/src/omp.xsl (html-report-table): Add config and target to
	summary.
	(target): Link credential to credentials page.
	(html-config-table): Add section "Tasks using this Config".

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2009-12-17 16:51:32 UTC (rev 6178)
+++ trunk/gsa/ChangeLog	2009-12-17 16:55:11 UTC (rev 6179)
@@ -1,3 +1,12 @@
+2009-12-17  Matthew Mundell <matthew.mundell at intevation.de>
+
+	Improve cross referencing.
+
+	* src/html/src/omp.xsl (html-report-table): Add config and target to
+	summary.
+	(target): Link credential to credentials page.
+	(html-config-table): Add section "Tasks using this Config".
+
 2009-12-17  Michael Wiegand <michael.wiegand at greenbone.net>
 
 	Added support for retrieving settings from the openvas-admininistrator.

Modified: trunk/gsa/src/html/src/omp.xsl
===================================================================
--- trunk/gsa/src/html/src/omp.xsl	2009-12-17 16:51:32 UTC (rev 6178)
+++ trunk/gsa/src/html/src/omp.xsl	2009-12-17 16:55:11 UTC (rev 6179)
@@ -545,6 +545,22 @@
           <td><b><xsl:value-of select="task/name"/></b></td>
         </tr>
         <tr>
+          <td>Config:</td>
+          <td>
+            <a href="/omp?cmd=get_config&amp;name={task/config/name}">
+              <xsl:value-of select="task/config/name"/>
+            </a>
+          </td>
+        </tr>
+        <tr>
+          <td>Target:</td>
+          <td>
+            <a href="/omp?cmd=get_targets">
+              <xsl:value-of select="task/target/name"/>
+            </a>
+          </td>
+        </tr>
+        <tr>
           <td>Status:</td>
           <td>
             <xsl:call-template name="status_bar">
@@ -1594,8 +1610,12 @@
     </td>
     <td><xsl:value-of select="hosts"/></td>
     <td><xsl:value-of select="max_hosts"/></td>
-    <td><xsl:value-of select="lsc_credential/name"/></td>
     <td>
+      <a href="/omp?cmd=get_lsc_credentials">
+        <xsl:value-of select="lsc_credential/name"/>
+      </a>
+    </td>
+    <td>
       <xsl:choose>
         <xsl:when test="in_use='0'">
           <a href="/omp?cmd=delete_target&amp;name={name}"
@@ -2698,6 +2718,40 @@
         </xsl:choose>
       </xsl:otherwise>
     </xsl:choose>
+
+    <xsl:choose>
+      <xsl:when test="count($config/tasks/task) = 0">
+        <h1>Tasks using this Config: None</h1>
+      </xsl:when>
+      <xsl:otherwise>
+        <h1>Tasks using this Config</h1>
+        <table class="gbntable" cellspacing="2" cellpadding="4">
+          <tr class="gbntablehead2">
+            <td>Name</td>
+            <td>Actions</td>
+          </tr>
+          <xsl:for-each select="$config/tasks/task">
+            <xsl:variable name="class">
+              <xsl:choose>
+                <xsl:when test="position() mod 2 = 0">even</xsl:when>
+                <xsl:otherwise>odd</xsl:otherwise>
+              </xsl:choose>
+            </xsl:variable>
+            <tr class="{$class}">
+              <td><xsl:value-of select="name"/></td>
+              <td width="100">
+                <a href="/omp?cmd=get_status&amp;task_id={@id}" title="Reports">
+                  <img src="/img/list.png"
+                       border="0"
+                       alt="Reports"
+                       style="margin-left:3px;"/>
+                </a>
+              </td>
+            </tr>
+          </xsl:for-each>
+        </table>
+      </xsl:otherwise>
+    </xsl:choose>
   </div>
 </xsl:template>
 



More information about the Openvas-commits mailing list