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 @@ ...@@ -288,6 +288,19 @@
</form> </form>
</div> </div>
</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 mb-3">
<div class=card-header> <div class=card-header>
Installed Packages Installed Packages
......
"""Flask web application views.""" """Flask web application views."""
import datetime import datetime
import platform
import re import re
import socket
try: try:
from importlib import metadata from importlib import metadata
...@@ -28,7 +30,9 @@ def index(): ...@@ -28,7 +30,9 @@ def index():
return render_template( return render_template(
'index.jinja2', 'index.jinja2',
conf=celery_app.conf, conf=celery_app.conf,
hostname=socket.getfqdn(),
packages=distributions, packages=distributions,
platform=platform.platform(),
versions=get_versions()) 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