self.print_out(' <colgroup span="9"></colgroup>')
self.print_out(' <thead>')
self.print_out(' <tr>')
- self.print_out(' <th rowspan="2">Name</th>')
- self.print_out(' <th rowspan="2">Vollständiger Name</th>')
- self.print_out(' <th rowspan="2">Repository</th>')
- self.print_out(' <th rowspan="2">Homepage bei Puppet Forge</th>')
- self.print_out(' <th colspan="4">Version</th>')
- self.print_out(' <th rowspan="2">Letzter Check</th>')
+ self.print_out(' <th rowspan="2" class="l h">Name</th>')
+ self.print_out(' <th rowspan="2" class="l h">Vollständiger Name</th>')
+ self.print_out(' <th rowspan="2" class="h">Repository</th>')
+ self.print_out(' <th rowspan="2" class="h">Homepage bei Puppet Forge</th>')
+ self.print_out(' <th colspan="4" class="h">Version</th>')
+ self.print_out(' <th rowspan="2" class="h">Letzter Check</th>')
self.print_out(' </tr><tr>')
- self.print_out(' <th>Puppet Forge</th>')
- self.print_out(' <th>Development</th>')
- self.print_out(' <th>Test</th>')
- self.print_out(' <th>Production</th>')
+ self.print_out(' <th class="h">Puppet Forge</th>')
+ self.print_out(' <th class="h">Development</th>')
+ self.print_out(' <th class="h">Test</th>')
+ self.print_out(' <th class="h">Production</th>')
self.print_out(' </tr>')
self.print_out(' </thead>')
self.print_out(' <tbody>')
nr_modules = 0
+ line_class = 'even'
+
for module_info in module_infos:
nr_modules += 1
+ if nr_modules % 2:
+ line_class = 'odd'
+ else:
+ line_class = 'even'
output_data = self.get_output_data(module_info)
if not output_data['forge_version']:
output_data['forge_version'] = '~'
- if not output_data['forge_homepage_url']:
+ if output_data['forge_homepage_url']:
+ o = '<a href="{u}">{u}</a>'.format(u=output_data['forge_homepage_url'])
+ output_data['forge_homepage_url'] = o
+ else:
output_data['forge_homepage_url'] = '~'
if not output_data['repo']:
output_data['repo'] = '~'
+ output_data['line_class'] = line_class
tpl = ' <tr>\n'
- tpl += ' <th>{name}</th>\n'
- tpl += ' <td>{full_name}</td>\n'
- tpl += ' <td>{repo}</td>\n'
- tpl += ' <td>{forge_homepage_url}</td>\n'
- tpl += ' <td>{forge_version}</td>\n'
- tpl += ' <td>{version_development}</td>\n'
- tpl += ' <td>{version_test}</td>\n'
- tpl += ' <td>{version_production}</td>\n'
- tpl += ' <td>{date_checked}</td>\n'
+ tpl += ' <th class="l h">{name}</th>\n'
+ tpl += ' <td class="{line_class}">{full_name}</td>\n'
+ tpl += ' <td class="{line_class}">{repo}</td>\n'
+ tpl += ' <td class="{line_class}">{forge_homepage_url}</td>\n'
+ tpl += ' <td class="{line_class}">{forge_version}</td>\n'
+ tpl += ' <td class="{line_class}">{version_development}</td>\n'
+ tpl += ' <td class="{line_class}">{version_test}</td>\n'
+ tpl += ' <td class="{line_class}">{version_production}</td>\n'
+ tpl += ' <td class="{line_class}">{date_checked}</td>\n'
tpl += ' </tr>'
if self.verbose > 2:
LOG.debug("Row template:\n{}".format(tpl))