Initial commit of docker flask.

This commit is contained in:
Krzysztof Płaczek
2018-03-09 10:33:19 +01:00
commit 6e9b3aed3a
16 changed files with 1128 additions and 0 deletions

52
templates/networks.html Normal file
View File

@@ -0,0 +1,52 @@
{% extends "layout.html" %}
{% block body %}
<h1><a href="/">Dashboard</a> &raquo; {{ client_name }} &raquo; Networks</h1>
<input type="text" class="search_table" placeholder="search">
<table>
<thead>
<tr>
<th>DRIVER</th>
<th>LABELS</th>
<th>MOUNTPOINT</th>
<th>NAME</th>
<th>OPTIONS</th>
<th>SCOPE</th>
</tr>
</thead>
<tbody>
{% for network in networks %}
<tr>
<td>
<pre>
{{ network.attrs|pprint }}
</pre>
</td>
<td> {{ network.attrs['Driver'] }}</td>
<td> {{ network.attrs['Labels'] }}</td>
<td> {{ network.attrs['Mountpoint'] }}</td>
<td> {{ network.attrs['Name'] }}</td>
<td> {{ network.attrs['Options'] }}</td>
<td> {{ network.attrs['Scope'] }}</td>
</tr>
{% else %}
<tr>
<td colspan="6">
no networks
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}