Commit b016f317 authored by Duncan Macleod's avatar Duncan Macleod Committed by Leo Pound Singer

add platform information to index view

parent 3f5f6db3
......@@ -288,6 +288,19 @@
</form>
</div>
</div>
<div class="card mb-3">
<div class=card-header>
Platform information
</div>
<div class=card-body>
<p>
GWCelery host: <code>{{ hostname }}</code>
</p>
<p>
Platform: <code>{{ platform }}</code>
</p>
</div>
</div>
<div class="card mb-3">
<div class=card-header>
Installed Packages
......
"""Flask web application views."""
import datetime
import platform
import re
import socket
try:
from importlib import metadata
......@@ -28,7 +30,9 @@ def index():
return render_template(
'index.jinja2',
conf=celery_app.conf,
hostname=socket.getfqdn(),
packages=distributions,
platform=platform.platform(),
versions=get_versions())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment