Salome HOME
'sat jobs' : minor changes
[tools/sat.git] / src / xsl / command.xsl
index 6ab03004cea0496478bc35e199aa2e8da4d04820..2969bece54ac025653fdba26a1a70d46f5f5268f 100644 (file)
@@ -4,30 +4,40 @@
 <xsl:template match="/">
 
 <head>  
-    <title>SAlomeTools log</title>
-    <style type="text/css">
-        table       { width : 100%;
-                      margin:1px;
-                      padding:1px;
-                      border-collapse:collapse;
-                      empty-cells : show;
-                    }
-        td          { vertical-align : center; padding: 15px; }
-        h1          { text-align : center; }
-        .legend     { font-weight : bold;
-                      text-align : center;
-                    } 
-        .def        { font-family: Arial, Verdana, "Times New Roman", Times, serif;}
-        hr.note     { color: #BFBFBF; }
-        .note       { text-align : right; font-style: italic; font-size: small; }
-        div.release { -moz-column-count: 2;
-                      overflow: auto;
-                      max-height: 250px;
-                    }
-        .OK2        { color:#00AA00; }
-       .KO2        { color:#FF0000; }
-    </style>
-       
+      <title>SAlomeTools log</title>
+      <style type="text/css">
+         table       { width : 100%;
+                       margin:1px;
+                       padding:1px;
+                       border-collapse:collapse;
+                       empty-cells : show;
+                     }
+         td          { vertical-align : center; padding: 15px; }
+         h1          { text-align : center; }
+         .legend     { font-weight : bold;
+                       text-align : center;
+                     } 
+         .def        { font-family: Arial, Verdana, "Times New Roman", Times, serif;}
+         hr.note     { color: #BFBFBF; }
+         .note       { text-align : right; font-style: italic; font-size: small; }
+         div.release { -moz-column-count: 2;
+                       overflow: auto;
+                       max-height: 250px;
+                     }
+         .OK2        { color:#00AA00; }
+         .KO2        { color:#FF0000; }
+      </style>
+      <script language="JavaScript"><![CDATA[
+           function Toggle(id) {
+             var element = document.getElementById(id);
+
+             if ( element.style.display == "none" )
+                 element.style.display = "block";
+             else 
+                 element.style.display = "none";
+           }
+         ]]>
+      </script>
 </head>
        <body class="def" bgcolor="aliceblue">
                <h1><img src="LOGO-SAT.png"/></h1>
                        </tr>
                </table>
                
-               <h1>command's internal traces</h1>
-               <PRE><xsl:value-of select="SATcommand/Log"/></PRE>
+               <h1>command's internal traces
+               <a href="#">
+                     <xsl:attribute name="onclick">javascript:Toggle('log')</xsl:attribute>
+                     <xsl:attribute name="title">Click to see the command log</xsl:attribute>
+                     collapse / expand
+               </a>
+               </h1>
+               
+               <div style="display:block"><xsl:attribute name="id">log</xsl:attribute>
+                   <PRE><xsl:value-of select="SATcommand/Log"/></PRE>
+               </div>
                
                <h1>Links</h1>
                <table border="1">
@@ -65,7 +84,7 @@
                                                                <xsl:value-of select="@command"/>
                                                        </a>
                                                </xsl:if>
-                                               <xsl:if test="@passed='1'">
+                                               <xsl:if test="@passed!='0'">
                                                        <a>
                                                                <xsl:attribute name="title">Click for more information</xsl:attribute>
                                                                <xsl:attribute name="class">KO2</xsl:attribute>
                <xsl:variable name="txtLog">
                        <xsl:value-of select="SATcommand/OutLog"/>
                </xsl:variable>
-               <iframe src="{$txtLog}" frameborder="0" class="center" width="100%" height="1500000" scrolling="no"></iframe>
+               <iframe src="{$txtLog}" frameborder="0" class="center" width="100%" height="3000" scrolling="yes"></iframe>
+               <!--<iframe src="{$txtLog}" frameborder="0" class="center" width="100%" height="1500000" scrolling="no"></iframe>-->
        </body>
 </xsl:template>