[Buildbot-commits] buildbot/buildbot/status html.py,1.47,1.48

Brian Warner warner at users.sourceforge.net
Mon Dec 6 07:21:53 UTC 2004


Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3248/buildbot/status

Modified Files:
	html.py 
Log Message:
(WaterfallStatusResource.phase2): Add the date to the top-most box, if it is
not the same as today's date.


Index: html.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/html.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- html.py	3 Dec 2004 22:54:52 -0000	1.47
+++ html.py	6 Dec 2004 07:21:51 -0000	1.48
@@ -1119,9 +1119,8 @@
         # grid is a list of columns, one for the timestamps, and one per
         # event source. Each column is exactly the same height. Each element
         # of the list is a single <td> box.
-        if timestamps:
-            lastDate = time.strftime("<b>%d %b %Y</b>",
-                                     time.localtime(timestamps[0]))
+        lastDate = time.strftime("<b>%d %b %Y</b>",
+                                 time.localtime(util.now()))
         for r in range(0, len(timestamps)):
             chunkstrip = eventGrid[r]
             # chunkstrip is a horizontal strip of event blocks. Each block
@@ -1135,7 +1134,8 @@
                 else:
                     # timestamp goes at the bottom of the chunk
                     stuff = []
-                    # add the date each time it changes
+                    # add the date at the beginning (if it is not the same as
+                    # today's date), and each time it changes
                     todayday = time.strftime("<b>%a</b>",
                                              time.localtime(timestamps[r]))
                     today = time.strftime("<b>%d %b %Y</b>",





More information about the Commits mailing list