]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
order history in job reports
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 4 Oct 2016 08:14:56 +0000 (10:14 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 4 Oct 2016 08:14:56 +0000 (10:14 +0200)
src/xsl/jobs_board_report.xsl
src/xsl/jobs_global_report.xsl

index aae3b77e17868154841840742b0134c53e072305..1551fe1fe2fecb84546d72ae5796764084a9488b 100644 (file)
                  <h4>History : </h4>
                  <br/>
                  <xsl:for-each select="//JobsReport/jobs/job[@name=$curr_job_name]/history/link">
+                   <xsl:sort select="@date" order="descending" />
                    <h4>
                      <a>
                        <xsl:attribute name="title">remote log</xsl:attribute>
index dfe647f0d15c3d81de079494b2ad61abe1445634..9b7e80001e9080a78574128508c850c4b1762c46 100644 (file)
                  <br/>
                  <h4>User : </h4><xsl:value-of select="//JobsReport/jobs/job[@name=$curr_job_name]/user"/>
                  <br/>
+                 <!-- Display history -->
+                 <h4>History : </h4>
+                 <br/>
+                 <xsl:for-each select="//JobsReport/jobs/job[@name=$curr_job_name]/history/link">
+                   <xsl:sort select="@date" order="descending" />
+                   <h4>
+                     <a>
+                       <xsl:attribute name="title">remote log</xsl:attribute>
+                       <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
+                       <xsl:if test="@res='0'">
+                           <xsl:attribute name="class">OK2</xsl:attribute>
+                       </xsl:if>
+                       <xsl:if test="@res!='0'">
+                           <xsl:attribute name="class">KO2</xsl:attribute>
+                       </xsl:if>
+                       <xsl:value-of select="@date"/>
+                     </a>
+                   </h4>
+                   <br/>
+                 </xsl:for-each>
                  <h4>salomeTools path : </h4><xsl:value-of select="//JobsReport/jobs/job[@name=$curr_job_name]/sat_path"/>
                  <br/>
                  <h4>After : </h4>