1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 16:58:28 +00:00
gns3-server/gns3server/templates/project.html

62 lines
1.3 KiB
HTML
Raw Normal View History

2016-03-15 10:32:10 +00:00
{% extends "layout.html" %}
{% block head %}
<script>
var socket = new WebSocket("ws://" + location.host + "/v2/projects/{{project.id}}/notifications/ws");
socket.onopen = function (event) {
document.getElementById("notifications").innerText = "Connected";
};
socket.onmessage = function (event) {
document.getElementById("notifications").innerText = event.data + "\n" + document.getElementById("notifications").innerText;
};
</script>
{% endblock %}
2016-03-15 10:32:10 +00:00
{% block body %}
<h1>
{{project.name}}
</h1>
The purpose of this page is to help for GNS3 debug. This can be dropped
in futur GNS3 versions.
<h2>VMs</h2>
<table border="1">
<tr>
<th>Name</th>
<th>ID</td>
<th>Compute</th>
2016-03-15 10:32:10 +00:00
<th>Console</th>
</tr>
{% for vm in project.vms.values() %}
<tr>
<td>{{vm.name}}</td>
<td>{{vm.id}}</td>
<td>{{vm.compute.id}}</td>
2016-03-15 10:32:10 +00:00
<td><a href="{{vm.console_type}}://{{vm.host}}:{{vm.console}}">Console</a>
</tr>
{% endfor %}
</table>
<h2>Links</h2>
<table border="1">
<tr>
<th>ID</td>
<th>Capture</td>
2016-03-15 10:32:10 +00:00
</tr>
{% for link in project.links.values() %}
<tr>
<td>{{link.id}}</td>
<td>{{link.capturing}}</td>
2016-03-15 10:32:10 +00:00
</tr>
{% endfor %}
</table>
<h2>Notifications</h2>
<div id="notifications">
</div>
2016-03-15 10:32:10 +00:00
{%endblock%}