incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r794592 - in /incubator/public/trunk: clutch.py site-author/clutch.js site-author/clutch.xml site-author/style/style.css site-publish/clutch.html site-publish/clutch.js site-publish/style/style.css
Date Thu, 16 Jul 2009 08:34:21 GMT
Author: crossley
Date: Thu Jul 16 08:34:20 2009
New Revision: 794592

URL: http://svn.apache.org/viewvc?rev=794592&view=rev
Log:
Repeat headers in middle of table and at end, and add colour.

Modified:
    incubator/public/trunk/clutch.py
    incubator/public/trunk/site-author/clutch.js
    incubator/public/trunk/site-author/clutch.xml
    incubator/public/trunk/site-author/style/style.css
    incubator/public/trunk/site-publish/clutch.html
    incubator/public/trunk/site-publish/clutch.js
    incubator/public/trunk/site-publish/style/style.css

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Thu Jul 16 08:34:20 2009
@@ -871,13 +871,7 @@
     otherXml += """ <span class="care">%s</span> """ % matchOtherIssues.group(1)
   otherXml += "</li>\n"
   fileXml.write(otherXml)
-tableTopXml = """      </ul>
-      <p>
-        Clutch last gathered: %(gatherDate)s UTC.<br />
-        Number of podlings in incubation: %(numProjects)s
-      </p>
-      <table id="clutch">
-        <tr>
+tableColumnHeadersXml = """        <tr>
           <th>Project</th>
           <th>Sponsor</th>
           <th>A</th>
@@ -899,15 +893,28 @@
           <th>Q</th>
           <th>R</th>
         </tr>
+"""
+tableTopXml = """      </ul>
+      <p>
+        Clutch last gathered: %(gatherDate)s UTC.<br />
+        Number of podlings in incubation: %(numProjects)s
+      </p>
+      <table id="clutch">
 """ % {'gatherDate': gatherDateString,
        'numProjects': len(projects)
       }
 fileXml.write(tableTopXml)
+fileXml.write(tableColumnHeadersXml)
 fileList.write('#identifier,name,sponsor\n')
 reportList1 = ""
 reportList2 = ""
 reportList3 = ""
+tableRowCount = 0
+tableRowCountMid = int(len(projects) / 2)
 for k in projectNames:
+  tableRowCount += 1
+  if tableRowCount == tableRowCountMid:
+    fileXml.write(tableColumnHeadersXml)
   fileXml.write('        <tr id="%s">\n' % k)
   fileXml.write('          <td>%s</td>\n' % projects[k]['name'])
   output[k] = {}
@@ -1050,6 +1057,7 @@
       })
 
 # End of rows
+fileXml.write(tableColumnHeadersXml)
 fileXml.write("      </table>\n    </section>\n")
 
 # Other issues

Modified: incubator/public/trunk/site-author/clutch.js
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/clutch.js?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/site-author/clutch.js (original)
+++ incubator/public/trunk/site-author/clutch.js Thu Jul 16 08:34:20 2009
@@ -16,8 +16,10 @@
       theTable.tBodies[0].rows[x].cells[3].firstChild.nodeValue = elapsed;
     }
     else {
-      theTable.tBodies[0].rows[x].cells[3].firstChild.nodeValue = "?";
-      elapsed = -10;
+      if (theTable.tBodies[0].rows[x].cells[3].tagName == "TD") {
+        theTable.tBodies[0].rows[x].cells[3].firstChild.nodeValue = "?";
+        elapsed = -10;
+      }
     }
     if (elapsed == -10) { // error
       theTable.tBodies[0].rows[x].cells[3].className = "issue";
@@ -44,8 +46,10 @@
       theTable.tBodies[0].rows[x].cells[9].firstChild.nodeValue = elapsed;
     }
     else {
-      theTable.tBodies[0].rows[x].cells[9].firstChild.nodeValue = "?";
-      elapsed = -10;
+      if (theTable.tBodies[0].rows[x].cells[9].tagName == "TD") {
+        theTable.tBodies[0].rows[x].cells[9].firstChild.nodeValue = "?";
+        elapsed = -10;
+      }
     }
     if (elapsed == -10) { // error
       theTable.tBodies[0].rows[x].cells[9].className = "issue";

Modified: incubator/public/trunk/site-author/clutch.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/clutch.xml?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/site-author/clutch.xml [utf-8] (original)
+++ incubator/public/trunk/site-author/clutch.xml [utf-8] Thu Jul 16 08:34:20 2009
@@ -117,7 +117,7 @@
         </li>
       </ul>
       <p>
-        Clutch last gathered: Wed Jul 15 07:58:10 2009 UTC.<br />
+        Clutch last gathered: Thu Jul 16 08:28:33 2009 UTC.<br />
         Number of podlings in incubation: 37
       </p>
       <table id="clutch">
@@ -264,7 +264,7 @@
           <td class="cool1"><a href="projects/droids.html">True</a></td>
           <td>2008-10-23</td>
           <td></td>
-          <td>0,0,3</td>
+          <td>0,0,2</td>
           <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#droids">5</a></td>
           <td class="care">0</td>
           <td class="cool1"><a href="https://svn.apache.org/repos/asf/incubator/droids/">True</a></td>
@@ -517,6 +517,28 @@
           <td class="cool1"><a href="http://www.apache.org/dist/incubator/olio/">True</a></td>
           <td class="cool1"><a href="http://www.apache.org/dist/incubator/olio/KEYS">True</a></td>
         </tr>
+        <tr>
+          <th>Project</th>
+          <th>Sponsor</th>
+          <th>A</th>
+          <th>B</th>
+          <th>C</th>
+          <th>D</th>
+          <th>E</th>
+          <th>F</th>
+          <th>G</th>
+          <th>H</th>
+          <th>I</th>
+          <th>J</th>
+          <th>K</th>
+          <th>L</th>
+          <th>M</th>
+          <th>N</th>
+          <th>O</th>
+          <th>P</th>
+          <th>Q</th>
+          <th>R</th>
+        </tr>
         <tr id="openwebbeans">
           <td>OpenWebBeans</td>
           <td>Incubator</td>
@@ -594,7 +616,7 @@
           <td class="cool1"><a href="projects/pivot.html">True</a></td>
           <td>2009-06-30</td>
           <td></td>
-          <td>2,11,13</td>
+          <td>2,10,13</td>
           <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#pivot">5</a></td>
           <td class="cool2">1</td>
           <td class="cool1"><a href="http://svn.apache.org/repos/asf/incubator/pivot/">True</a></td>
@@ -957,6 +979,28 @@
           <td class="care">False</td>
           <td class="care">False</td>
         </tr>
+        <tr>
+          <th>Project</th>
+          <th>Sponsor</th>
+          <th>A</th>
+          <th>B</th>
+          <th>C</th>
+          <th>D</th>
+          <th>E</th>
+          <th>F</th>
+          <th>G</th>
+          <th>H</th>
+          <th>I</th>
+          <th>J</th>
+          <th>K</th>
+          <th>L</th>
+          <th>M</th>
+          <th>N</th>
+          <th>O</th>
+          <th>P</th>
+          <th>Q</th>
+          <th>R</th>
+        </tr>
       </table>
     </section>
     <section id="other">

Modified: incubator/public/trunk/site-author/style/style.css
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/style/style.css?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/site-author/style/style.css (original)
+++ incubator/public/trunk/site-author/style/style.css Thu Jul 16 08:34:20 2009
@@ -70,6 +70,9 @@
     border: 2px solid #bbbbbb;
     white-space: pre;
 }
+#clutch th {
+  background-color: #cccccc;
+}
 #clutch td {
   padding: 0.2em;
 }

Modified: incubator/public/trunk/site-publish/clutch.html
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/clutch.html?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/clutch.html [utf-8] (original)
+++ incubator/public/trunk/site-publish/clutch.html [utf-8] Thu Jul 16 08:34:20 2009
@@ -201,7 +201,7 @@
         </li>
       </ul>
 <p>
-        Clutch last gathered: Wed Jul 15 07:58:10 2009 UTC.<br />
+        Clutch last gathered: Thu Jul 16 08:28:33 2009 UTC.<br />
         Number of podlings in incubation: 37
       </p>
 <table id="clutch" class="colortable" width="100%">
@@ -348,7 +348,7 @@
           <td class="cool1"><a href="projects/droids.html">True</a></td>
           <td>2008-10-23</td>
           <td />
-          <td>0,0,3</td>
+          <td>0,0,2</td>
           <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#droids">5</a></td>
           <td class="care">0</td>
           <td class="cool1"><a href="https://svn.apache.org/repos/asf/incubator/droids/">True</a></td>
@@ -601,6 +601,28 @@
           <td class="cool1"><a href="http://www.apache.org/dist/incubator/olio/">True</a></td>
           <td class="cool1"><a href="http://www.apache.org/dist/incubator/olio/KEYS">True</a></td>
         </tr>
+        <tr>
+          <th>Project</th>
+          <th>Sponsor</th>
+          <th>A</th>
+          <th>B</th>
+          <th>C</th>
+          <th>D</th>
+          <th>E</th>
+          <th>F</th>
+          <th>G</th>
+          <th>H</th>
+          <th>I</th>
+          <th>J</th>
+          <th>K</th>
+          <th>L</th>
+          <th>M</th>
+          <th>N</th>
+          <th>O</th>
+          <th>P</th>
+          <th>Q</th>
+          <th>R</th>
+        </tr>
         <tr id="openwebbeans">
           <td>OpenWebBeans</td>
           <td>Incubator</td>
@@ -678,7 +700,7 @@
           <td class="cool1"><a href="projects/pivot.html">True</a></td>
           <td>2009-06-30</td>
           <td />
-          <td>2,11,13</td>
+          <td>2,10,13</td>
           <td class="cool1"><a href="http://people.apache.org/~jim/projects.html#pivot">5</a></td>
           <td class="cool2">1</td>
           <td class="cool1"><a href="http://svn.apache.org/repos/asf/incubator/pivot/">True</a></td>
@@ -1041,6 +1063,28 @@
           <td class="care">False</td>
           <td class="care">False</td>
         </tr>
+        <tr>
+          <th>Project</th>
+          <th>Sponsor</th>
+          <th>A</th>
+          <th>B</th>
+          <th>C</th>
+          <th>D</th>
+          <th>E</th>
+          <th>F</th>
+          <th>G</th>
+          <th>H</th>
+          <th>I</th>
+          <th>J</th>
+          <th>K</th>
+          <th>L</th>
+          <th>M</th>
+          <th>N</th>
+          <th>O</th>
+          <th>P</th>
+          <th>Q</th>
+          <th>R</th>
+        </tr>
       </table>
 </div>
            <h2><img src="./images/redarrow.gif" />

Modified: incubator/public/trunk/site-publish/clutch.js
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/clutch.js?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/clutch.js (original)
+++ incubator/public/trunk/site-publish/clutch.js Thu Jul 16 08:34:20 2009
@@ -16,8 +16,10 @@
       theTable.tBodies[0].rows[x].cells[3].firstChild.nodeValue = elapsed;
     }
     else {
-      theTable.tBodies[0].rows[x].cells[3].firstChild.nodeValue = "?";
-      elapsed = -10;
+      if (theTable.tBodies[0].rows[x].cells[3].tagName == "TD") {
+        theTable.tBodies[0].rows[x].cells[3].firstChild.nodeValue = "?";
+        elapsed = -10;
+      }
     }
     if (elapsed == -10) { // error
       theTable.tBodies[0].rows[x].cells[3].className = "issue";
@@ -44,8 +46,10 @@
       theTable.tBodies[0].rows[x].cells[9].firstChild.nodeValue = elapsed;
     }
     else {
-      theTable.tBodies[0].rows[x].cells[9].firstChild.nodeValue = "?";
-      elapsed = -10;
+      if (theTable.tBodies[0].rows[x].cells[9].tagName == "TD") {
+        theTable.tBodies[0].rows[x].cells[9].firstChild.nodeValue = "?";
+        elapsed = -10;
+      }
     }
     if (elapsed == -10) { // error
       theTable.tBodies[0].rows[x].cells[9].className = "issue";

Modified: incubator/public/trunk/site-publish/style/style.css
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-publish/style/style.css?rev=794592&r1=794591&r2=794592&view=diff
==============================================================================
--- incubator/public/trunk/site-publish/style/style.css (original)
+++ incubator/public/trunk/site-publish/style/style.css Thu Jul 16 08:34:20 2009
@@ -70,6 +70,9 @@
     border: 2px solid #bbbbbb;
     white-space: pre;
 }
+#clutch th {
+  background-color: #cccccc;
+}
 #clutch td {
   padding: 0.2em;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message