diff options
author | Evan Martin <martine@danga.com> | 2011-05-13 16:07:43 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-05-13 23:28:07 (GMT) |
commit | 400ca686fed88e4ab49541829657d0edec02f9aa (patch) | |
tree | 1d1a0b9fa508f31ef67eed569a97b58c13bfd5e9 /src/browse.py | |
parent | 1c80bd1691f69332a8fec42080c1c341c0e2fa44 (diff) | |
download | Ninja-400ca686fed88e4ab49541829657d0edec02f9aa.zip Ninja-400ca686fed88e4ab49541829657d0edec02f9aa.tar.gz Ninja-400ca686fed88e4ab49541829657d0edec02f9aa.tar.bz2 |
tweak browse appearance
Diffstat (limited to 'src/browse.py')
-rwxr-xr-x | src/browse.py | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/browse.py b/src/browse.py index c671535..9901adc 100755 --- a/src/browse.py +++ b/src/browse.py @@ -72,26 +72,33 @@ h2 { tt { font-family: WebKitHack, monospace; } +ul { + margin-top: 0; + padding-left: 20px; +} </style>''' - print '<table><tr><td colspan=3>' - print '<h1>%s</h1>' % node + print '<table width=500><tr><td colspan=3>' + print '<h1><tt>%s</tt></h1>' % node print '</td></tr>' print '<tr><td valign=top>' - print '<h2>input</h2>' if input: - print '<p><tt>%s</tt>:</p>' % input[0] - print '<ul>' - for i in input[1:]: - print '<li><tt><a href="?%s">%s</a></tt></li>' % (i, i) - print '</ul>' + print '<h2>built by rule: <tt>%s</tt></h2>' % input[0] + if len(input) > 0: + print 'inputs:' + print '<ul>' + for i in input[1:]: + print '<li><tt><a href="?%s">%s</a></tt></li>' % (i, i) + print '</ul>' + else: + print '<h2>no input rule</h2>' print '</td>' print '<td width=50> </td>' print '<td valign=top>' - print '<h2>outputs</h2>' + print '<h2>dependents</h2>' for output in outputs: - print '<p><tt>%s</tt>:</p>' % output[0] + print '<tt>%s</tt>' % output[0] print '<ul>' for i in output[1:]: print '<li><tt><a href="?%s">%s</a></tt></li>' % (i, i) |