diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 0000000..1a8885a Binary files /dev/null and b/assets/favicon.png differ diff --git a/metrics b/metrics index 8ee838b..27ab4fa 100755 --- a/metrics +++ b/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") diff --git a/templates/index.html b/templates/index.html index 2cdeca8..db4f22a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,6 +7,10 @@ + + + + Summary for Lubuntu Project Metrics
diff --git a/templates/jenkins.html b/templates/jenkins.html index c39d9a8..c9fdd3b 100644 --- a/templates/jenkins.html +++ b/templates/jenkins.html @@ -10,12 +10,16 @@ + + + + Jenkins data for the past {{ days }} day{{ "s" if days > 1 }}
-

Jenkins data for the past {{ days }} day(s)

+

Jenkins data for the past {{ days }} day{{ "s" if days > 1 }}

Average number of failing jobs: {{ average.failing }}

Average number of non-passing jobs: {{ average.nonpassing }}