Commit f8e7bf32 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: monitor button in menu directly open monitoring of instance

working only if the instance inside the runner has configured monitoring
parent cc0536e9
......@@ -83,6 +83,7 @@
<li><a href="{{ url_for('inspectInstance') }}">Services</a></li>
<li><a href="{{ url_for('viewLog') }}">Logs</a></li>
<li><a href="{{ url_for('shell') }}">Terminal</a></li>
<li><a href="{{ g.instance_monitoring_url }}" target="_blank">Monitor</a></li>
<li><a href="{{ url_for('manageRepository')}}#tab2">Git</a></li>
<li class='right_menu main_menu'><a href="#"></a>
<ul>
......
......@@ -61,6 +61,7 @@ def before_request():
if request.path != "/setAccount" and request.path != "/configAccount":
return redirect(url_for('setAccount'))
g.instance_monitoring_url = app.config['instance_monitoring_url']
# general views
def home():
......
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