2020-05-18 18:35:20 +02:00
|
|
|
{% extends "main.html" %}
|
|
|
|
|
2020-05-19 17:47:55 +02:00
|
|
|
{% block title %}Details for {{ hostname }} {% endblock %}
|
2020-05-18 18:35:20 +02:00
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
<script>
|
|
|
|
function whereAmI() {
|
|
|
|
window.opener.ProcessChildMessage("{{ hostname_uuid }}");
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-05-19 17:47:55 +02:00
|
|
|
<center>
|
|
|
|
<h3>{{ hostname }}</h3>
|
|
|
|
<button type="button" class="btn btn-secondary" onclick="whereAmI()">Locate node on tree</button>
|
2020-05-20 19:11:15 +02:00
|
|
|
<a href="{{ url_for('hostnode_details_text', tree_uuid=tree_uuid, node_uuid=hostname_uuid) }}" class="btn btn-info" role="button">Get URLs as text</a>
|
2020-05-19 17:47:55 +02:00
|
|
|
</center>
|
|
|
|
<p>Click on the URL to get the content of the response</p>
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table id="table" class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>URL</th>
|
2020-05-20 19:11:15 +02:00
|
|
|
<th>Known file</th>
|
2020-05-19 17:47:55 +02:00
|
|
|
{% for alt, path in keys.items() %}
|
|
|
|
<th><img src="{{ path }}" alt="{{ alt }}" width="21" height="21"/></th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for url in urls %}
|
|
|
|
<tr>
|
|
|
|
<td style="white-space:nowrap">
|
2020-05-20 19:11:15 +02:00
|
|
|
<a href="{{ url_for('urlnode_details', tree_uuid=tree_uuid, node_uuid=url.uuid) }}">{{ url.name }}</a>
|
|
|
|
</td>
|
|
|
|
<td><br/>
|
|
|
|
{% if url.sane_js_details_to_print %}
|
|
|
|
{{ url.sane_js_details_to_print }}
|
|
|
|
{% else %}
|
|
|
|
{{ url.sane_js_details }}
|
|
|
|
{% endif %}
|
2020-05-19 17:47:55 +02:00
|
|
|
</td>
|
|
|
|
{% for key in keys.keys() %}
|
|
|
|
<td><br/>
|
|
|
|
{% if url[key] %}
|
|
|
|
X
|
|
|
|
{% else%}
|
|
|
|
-
|
|
|
|
{%endif%}
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-05-18 18:35:20 +02:00
|
|
|
{% endblock %}
|