dodano strefe czasowa i poprawiono bugi
This commit is contained in:
parent
9dd1722c04
commit
7c86799250
5
app.py
5
app.py
@ -24,7 +24,7 @@ def main():
|
|||||||
if db.get_user_bytoken(auth_token) is None:
|
if db.get_user_bytoken(auth_token) is None:
|
||||||
return redirect("/login")
|
return redirect("/login")
|
||||||
machines_all = db.get_machines()
|
machines_all = db.get_machines()
|
||||||
return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines)
|
return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines, timezone=config.timezone)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/login')
|
@app.route('/login')
|
||||||
@ -32,7 +32,8 @@ def login():
|
|||||||
auth_token = request.cookies.get('auth_token')
|
auth_token = request.cookies.get('auth_token')
|
||||||
if auth_token != "" or auth_token is not None:
|
if auth_token != "" or auth_token is not None:
|
||||||
if db.get_user_bytoken(auth_token) is not None:
|
if db.get_user_bytoken(auth_token) is not None:
|
||||||
return render_template('index.html')
|
machines_all = db.get_machines()
|
||||||
|
return render_template('index.html', ssh_port=config.webssh_port, machines=machines_all.machines, timezone=config.timezone)
|
||||||
return render_template('login.html')
|
return render_template('login.html')
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nazwa maszyny</th>
|
<th>Nazwa maszyny(token)</th>
|
||||||
<th>Obraz</th>
|
<th>Obraz</th>
|
||||||
<th>Czas uruchomienia</th>
|
<th>Czas uruchomienia ({{ timezone }})</th>
|
||||||
<th>IP uVPN</th>
|
<th>IP uVPN</th>
|
||||||
<th>IP lokalne</th>
|
<th>IP lokalne</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
Loading…
Reference in New Issue
Block a user