mirror of
https://github.com/lubuntu-team/metrics.git
synced 2025-03-12 07:31:09 +00:00
Add favicon and make it look slightly less clunky.
This commit is contained in:
parent
d950c9f8c7
commit
39d32d1b49
BIN
assets/favicon.png
Normal file
BIN
assets/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
9
metrics
9
metrics
@ -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…
x
Reference in New Issue
Block a user