Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Roberto DePietri
gwcelery
Commits
b016f317
Commit
b016f317
authored
May 04, 2020
by
Duncan Macleod
Committed by
Leo Pound Singer
May 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add platform information to index view
parent
3f5f6db3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
gwcelery/templates/index.jinja2
gwcelery/templates/index.jinja2
+13
-0
gwcelery/views.py
gwcelery/views.py
+4
-0
No files found.
gwcelery/templates/index.jinja2
View file @
b016f317
...
...
@@ -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
...
...
gwcelery/views.py
View file @
b016f317
"""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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment