add loading of MNT-data from kverify
This commit is contained in:
parent
b305139033
commit
1770eeb201
7 changed files with 100 additions and 24 deletions
|
@ -5,11 +5,14 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{config["MNT"]}} Autopeering</title>
|
||||
<link rel="stylesheet" href="static/style.css">
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="flex">{{config["MNT"]}}</header>
|
||||
<div class="content flex">{% block content %}{% endblock %}</div>
|
||||
<header class="flex flex-row"><div></div><a href="/">{{config["MNT"]}} Autopeering</a>{% if "login" in session %}<a href="/logout">logout</a>{% else %} <a href="/login?return=/peer">login</a>{%endif%}</header>
|
||||
<div class="content flex">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<footer class="flex">
|
||||
<div></div>
|
||||
<div></div>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>NodeName</th>
|
||||
<th>Country</th>
|
||||
<th>City</th>
|
||||
<th>peerings</th>
|
||||
|
@ -19,6 +20,7 @@
|
|||
</thead>
|
||||
{% for node in config["nodes"] %}
|
||||
<tr>
|
||||
<td>{{node}}</td>
|
||||
<td>{{config["nodes"][node]["country"]}}</td>
|
||||
<td>{{config["nodes"][node]["city"]}}</td>
|
||||
<td></td>
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
{% if msg %}
|
||||
<div style="background-color: red;">
|
||||
{{msg}}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form action="https://dn42.g-load.eu/auth/">
|
||||
<link rel="stylesheet" href="https://dn42.g-load.eu/auth/assets/button-font/auth.css">
|
||||
<input type="hidden" id="return" name="return" value='{{"http://"+config["domain"]+"/api/auth/kverify"}}'>
|
||||
|
@ -11,7 +17,8 @@
|
|||
</form>
|
||||
|
||||
<form action="" method="post">
|
||||
<input type="">
|
||||
<input type="text" name="logincode" id="logincode">
|
||||
<input type="submit" value="submit">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
13
web/frontend/peer.html
Normal file
13
web/frontend/peer.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form action="peer" method="post">
|
||||
<select name="node" id="node">
|
||||
{% for node in config["nodes"] %}
|
||||
<option value="{{node}}" {% if selected_node %}{% if selected_node == node %}selected{% endif %}{% endif %} >{{node}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
|
@ -2,6 +2,7 @@
|
|||
--bg-color: #aaa;
|
||||
--text-color: black;
|
||||
--other-background: #444;
|
||||
/* --accent-color: ; */
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -15,16 +16,26 @@ header {
|
|||
background-color: var(--other-background);
|
||||
height: 50px;
|
||||
}
|
||||
a {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
height: calc(100% - 55px);
|
||||
margin: initial;
|
||||
margin: auto;
|
||||
}
|
||||
.content>* {
|
||||
padding: 5%;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.flex>* {
|
||||
flex-flow: column;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue