Changeset 10682 in genesis
- Timestamp:
- May 6, 2012, 2:04:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10681 r10682 231 231 """ Main overview page """ 232 232 items = {'root' : "." } 233 def fl(spaces, line): 234 return (' ' * spaces) + line + '\n' 235 233 236 output = """ 234 237 <html> … … 249 252 </form> 250 253 <table> 251 <caption><h3>Wireless Leiden Configurator</h3></caption>254 <caption><h3>Wireless Leiden Configurator</h3></caption> 252 255 """ % items 253 256 254 257 for node in nodelist: 255 258 items['node'] = node 256 output += '<tr><td><a href="%(root)s/%(node)s">%(node)s</a></td>' % items259 output += fl(5, '<tr>') + fl(7,'<td><a href="%(root)s/%(node)s">%(node)s</a></td>' % items) 257 260 for config in files: 258 261 items['config'] = config 259 output += '<td><a href="%(root)s/%(node)s/%(config)s">%(config)s</a></td>' % items260 output += "</tr>"262 output += fl(7,'<td><a href="%(root)s/%(node)s/%(config)s">%(config)s</a></td>' % items) 263 output += fl(5, "</tr>") 261 264 output += """ 262 265 </table>
Note:
See TracChangeset
for help on using the changeset viewer.