]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Using Confluence stylesheet classes
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 30 Aug 2018 09:42:51 +0000 (11:42 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 30 Aug 2018 09:42:51 +0000 (11:42 +0200)
lib/webhooks/show_modules.py

index 5e31d4bea06ed9acf215b9b968c1d4ebca5541b3..845629894ad21bf2ca4a561926a8f889310fbc89 100644 (file)
@@ -221,21 +221,21 @@ class ShowModulesApp(BaseHookApp):
             self.print_out()
             return
 
-        self.print_out('<table>')
+        self.print_out('<table class="wrapped relative-table confluenceTable">')
         self.print_out('  <colgroup span="9"></colgroup>')
         self.print_out('  <thead>')
         self.print_out('    <tr>')
-        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('      <th rowspan="2" class="l h confluenceTh">Name</th>')
+        self.print_out('      <th rowspan="2" class="l h confluenceTh">Vollständiger Name</th>')
+        self.print_out('      <th rowspan="2" class="h confluenceTh">Repository</th>')
+        self.print_out('      <th rowspan="2" class="h confluenceTh">Homepage bei Puppet Forge</th>')
+        self.print_out('      <th colspan="4" class="h confluenceTh">Version</th>')
+        self.print_out('      <th rowspan="2" class="h confluenceTh">Letzter Check</th>')
         self.print_out('    </tr><tr>')
-        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('      <th class="h confluenceTh">Puppet Forge</th>')
+        self.print_out('      <th class="h confluenceTh">Development</th>')
+        self.print_out('      <th class="h confluenceTh">Test</th>')
+        self.print_out('      <th class="h confluenceTh">Production</th>')
         self.print_out('    </tr>')
         self.print_out('  </thead>')
         self.print_out('  <tbody>')
@@ -262,15 +262,15 @@ class ShowModulesApp(BaseHookApp):
                 output_data['repo'] = '~'
             output_data['line_class'] = line_class
             tpl = '    <tr>\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 += '      <th class="l h confluenceTh">{name}</th>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{full_name}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{repo}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{forge_homepage_url}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{forge_version}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{version_development}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{version_test}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{version_production}</td>\n'
+            tpl += '      <td class="{line_class} confluenceTd">{date_checked}</td>\n'
             tpl += '    </tr>'
             if self.verbose > 2:
                 LOG.debug("Row template:\n{}".format(tpl))