Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pony
rework_ui
Commits
b309a04c0992
Commit
2a0dee34
authored
Apr 20, 2018
by
Aurélien Campéas
Browse files
blueprint: add a safety belt when there are no services
We just show something rather than crashing.
parent
f5cdd261d6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
rework_ui/blueprint.py
View file @
b309a04c
...
...
@@ -367,6 +367,8 @@ def reworkui(engine,
@
bp
.
route
(
'/'
)
def
home
():
domains
=
alldomains
(
engine
)
if
not
len
(
domains
):
return
'No operation registered: nothing to see here'
h
=
HTML
()
firstdomain
=
initialdomain
(
domains
)
...
...
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