[Git][NTPsec/ntpsec][master] Deleted 1 commit: Add headers to each image, now the html can be searched in a browser.

Gary E. Miller gitlab at mg.gitlab.com
Sat Aug 20 03:04:48 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.


Deleted commits:
5d2bb24d by Gary E. Miller at 2016-08-19T20:03:42-07:00
Add headers to each image, now the html can be searched in a browser.

Now i can search for SHM instead of paging down and down...

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -22,7 +22,7 @@ from __future__ import print_function, division
 import os, sys, getopt, socket, binascii, datetime, collections, gzip, time
 from ntp.statfiles import *
 
-#import cProfile, pstats, StringIO
+#import cProfile, pstats
 #pr = cProfile.Profile()
 #pr.enable()
 
@@ -482,9 +482,14 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
                         pass
                 # now the graphs
                 for (imagename, _) in imagepairs:
-                    ifile.write("<div><img src='%s.png' alt='%s plot'></div>\n" \
-                        % (imagename.replace(':', '%3A'), \
-                         imagename.replace('-', ' ')))
+                    div_name = imagename.replace('-', ' ')
+                    div = '''\
+<div>
+  <h3>%s</h3>
+  <img src='%s.png' alt='%s plot'>
+</div>
+''' % (div_name, imagename.replace(':', '%3A'), div_name)
+                    ifile.write( div )
                 # if footer file, add it to index.html
                 footer = os.path.join(outdir, "footer")
                 if os.path.isfile(footer):



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5d2bb24dbdf0077c37b35f457bc09d3d0c58a4fa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160820/9fb5a8b7/attachment.html>


More information about the vc mailing list