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 class=card-body>
GWCelery host: <code>{{ hostname }}</code>
Platform: <code>{{ platform }}</code>
<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,
packages=distributions, packages=distributions,
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