Align N/A with images
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 20 Sep 2011 20:26:28 +0000 (22:26 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 20 Sep 2011 20:26:28 +0000 (22:26 +0200)
gw-tests/genhtml/genhtml.py

index 1ed6ce7..2488c85 100755 (executable)
@@ -326,6 +326,7 @@ h4 { margin: 0; }
 .otherview .other:hover { background: #eee; }
 .otherview .missing { color: gray; }
 .otherview .current { background: #ccc; }
+.na { width: 150px; height: 109px; display:  table-cell; text-align: center; vertical-align: middle; }
 """
         css.close()
         for test in self.values():
@@ -393,7 +394,7 @@ class Page(object):
                     test = tests.getTest(idx)
                     test.printThumbLink(html)
                 except KeyError:
-                    print >>html, "N/A"
+                    print >>html, "<span class='na'>N/A</span>"
                 print >>html, "</td>"
            print >>html, "</tr>"
        print >> html, """