All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steve Sakoman" <steve@sakoman.com>
To: yocto@lists.yoctoproject.org
Subject: [yocto-autobuilder-helper][dunfell 07/23] scripts/generate-testresult-index.py: Use bulma css to improve the look of the index
Date: Wed, 24 Mar 2021 14:39:16 -1000	[thread overview]
Message-ID: <7b3d9d7f821620d3e0549b0f2834f8c2e0b04065.1616625264.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1616625264.git.steve@sakoman.com>

From: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4b8eab92ee1f68ec8cd680c62e40b17006fa6efc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 scripts/generate-testresult-index.py | 34 ++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/scripts/generate-testresult-index.py b/scripts/generate-testresult-index.py
index c3fea84..d9d577e 100755
--- a/scripts/generate-testresult-index.py
+++ b/scripts/generate-testresult-index.py
@@ -13,18 +13,29 @@ import subprocess
 from jinja2 import Template
 
 index_templpate = """
-<h1>Index of autobuilder test results</h1>
-    
-<table>
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <title>Index of autobuilder test results</title>
+  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
+</head>
+<body>
+ 
+<table class="table is-narrow is-striped">
+<thead>
 <tr>
-  <td>Build</td>     
-  <td>Type</td>
-  <td>Branch</td>
-  <td>Test Results Report</td>
-  <td>Performance Reports</td>
-  <td>ptest Logs</td>
-  <td>Buildhistory</td>
+  <th>Build</th>
+  <th>Type</th>
+  <th>Branch</th>
+  <th>Test Results Report</th>
+  <th>Performance Reports</th>
+  <th>ptest Logs</th>
+  <th>Buildhistory</th>
 </tr>
+</thead>
+<tdata>
 {% for entry in entries %}
 <tr>
    <td><a href="{{entry[1]}}">{{entry[0]}}</a></td>
@@ -48,7 +59,10 @@ index_templpate = """
    </td>
 </tr>
 {% endfor %}
+</tdata>
 </table>
+</body>
+</html>
 """
 
 def parse_args(argv=None):
-- 
2.25.1


  parent reply	other threads:[~2021-03-25  0:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-25  0:39 [yocto-autobuilder-helper][dunfell 00/23] Patch review Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 01/23] scripts: Add runqemu-renice.c for renicing runqemu Steve Sakoman
2021-03-25 14:20   ` [yocto] " Richard Purdie
2021-03-25 15:31     ` Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 02/23] scripts/generate-testresult-index: Update after 'posttrigger' renaming broke the index generation Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 03/23] scripts/generate-testresult-index: Ensure backwards compatibility with older layout Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 04/23] scripts/generate-testresult-index.py: Ensure we're not always rerunning resulttool Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 05/23] scripts/generate-testresult-index: Improve index to list test reports, ptest and buildperf separately Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 06/23] scripts/generate-testresult-index: Reorder buildhistory to improve display Steve Sakoman
2021-03-25  0:39 ` Steve Sakoman [this message]
2021-03-25 14:04   ` [yocto] [yocto-autobuilder-helper][dunfell 07/23] scripts/generate-testresult-index.py: Use bulma css to improve the look of the index Richard Purdie
2021-03-25 14:10     ` Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 08/23] scripts/run-config: Don't execute steps that don't exist! Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 09/23] scripts/run-config: Ensure stepnum has a value when there are no steps Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 10/23] scripts/run-config: If target is present default to 1 step Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 11/23] run-config: Adapt to two pass execution Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 12/23] scripts/run-config: Improve logfile naming Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 13/23] scripts/run-config: Ensure logging to both logfile and stdout Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 14/23] config.json/run-config: Add human readable descriptions of steps Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 15/23] scripts/run-config: Remove redundant boilerplate json Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 16/23] scripts/shared-repo-unpack: Add flush call to update the output more regularly before buildtools Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 17/23] config.json/run-config: Add support for shortnames and descriptions Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 18/23] config.json: Unbreak qa-extras locked sigs test Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 19/23] config.json: Add further descriptions Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 20/23] config.json: Use buildtools tarball on debian9 Steve Sakoman
2021-03-25 14:02   ` [yocto] " Richard Purdie
2021-03-25 14:07     ` Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 21/23] scripts/run-config: Disable output buffering Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 22/23] config.json: Split reproduciblity tests into their own target Steve Sakoman
2021-03-25  0:39 ` [yocto-autobuilder-helper][dunfell 23/23] config: build and test SDKs when using package_deb Steve Sakoman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7b3d9d7f821620d3e0549b0f2834f8c2e0b04065.1616625264.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.