1
0
Fork 0
mirror of https://github.com/Findus23/matomo4-plugins.git synced 2024-09-19 15:23:43 +02:00

fix footer

This commit is contained in:
Lukas Winkler 2020-08-31 20:38:05 +02:00
parent 2cf522d947
commit 3791d469b5
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,4 @@
from datetime import datetime
from pathlib import Path
from subprocess import run
@ -11,8 +12,9 @@ output_html_file = Path("public/index.html")
sp = run(["git", "rev-parse", "--verify", "HEAD"], capture_output=True)
commit = sp.stdout.decode().strip()
template = Template(template_file.read_text(), autoescape=True,undefined=StrictUndefined)
template = Template(template_file.read_text(), autoescape=True, undefined=StrictUndefined)
output_html_file.write_text(template.render({
"plugins": get_all_plugins(),
"commit":commit
"commit": commit,
"now": datetime.now()
}))

View file

@ -38,6 +38,15 @@
width: 16px;
height: 16px;
}
footer {
display: flex;
justify-content: space-between;
}
footer span,footer a {
display: block;
}
</style>
</head>
<body>
@ -94,6 +103,7 @@
<footer>
<a href="https://lw1.at/i">Imprint and Privacy</a>
<a href="https://github.com/Findus23/matomo4-plugins/tree/{{ commit }}">Source</a>
<span>Generated at {{ now }}</span>
</footer>
</div>
</body>