Add favicon and make it look slightly less clunky.

master
Simon Quigley 5 years ago
parent d950c9f8c7
commit 39d32d1b49

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@ -21,6 +21,7 @@ import sqlite3
from jinja2 import Template
from modules.jenkins import JenkinsModule
from os import path
from shutil import copytree, rmtree
ENABLED_MODULES = [JenkinsModule]
@ -143,3 +144,11 @@ if __name__ == "__main__":
# Render the summary page
summary()
# Copy the assets
# FIXME: clunky and racey
try:
copytree("assets", "output/assets")
except FileExistsError:
rmtree("output/assets")
copytree("assets", "output/assets")

@ -7,6 +7,10 @@
<!-- Import Bootstrap 4.3.1 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Favicon and page title -->
<link rel="icon" type="image/png" href="/assets/favicon.png"/>
<title>Summary for Lubuntu Project Metrics</title>
</head>
<body>
<div class="container">

@ -10,12 +10,16 @@
<!-- Import Bootstrap 4.3.1 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Favicon and page title -->
<link rel="icon" type="image/png" href="/assets/favicon.png"/>
<title>Jenkins data for the past {{ days }} day{{ "s" if days > 1 }}</title>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col" style="text-align: center;">
<h1>Jenkins data for the past {{ days }} day(s)</h1>
<h1>Jenkins data for the past {{ days }} day{{ "s" if days > 1 }}</h1>
<canvas id="jenkinschart"></canvas>
<h2>Average number of failing jobs: {{ average.failing }}</h2>
<h2>Average number of non-passing jobs: {{ average.nonpassing }}</h2>

Loading…
Cancel
Save