ldap-python-webui/logs.tpl

47 lines
1.3 KiB
Smarty
Raw Normal View History

2023-04-06 22:09:26 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, nofollow">
2023-04-07 15:21:44 +02:00
<title>{{ str['logs'] }}</title>
2023-04-06 22:09:26 +02:00
<link rel="stylesheet" href="{{ url('static', filename='style.css') }}">
</head>
<body>
<main>
2023-04-07 15:21:44 +02:00
<h1>{{ str['logs'] }}</h1>
2023-04-06 22:09:26 +02:00
<div class="logs">
<div class="last-login">
2023-04-07 15:21:44 +02:00
<h5>{{ str['last-login'] }}</h5>
<div class="last-login-info">
<p>{{ data['ip'] }}</p>
<p class="date">{{ data['lastLogin'] }}</p>
</div>
2023-04-06 22:09:26 +02:00
</div>
<div class="device-list">
2023-04-07 15:21:44 +02:00
<h5>{{ str['devices'] }}</h5>
%for device in data['devices']:
<li>{{ device }}</li>
%end
</div>
<div class="form-buttons">
<a href="/user"><button class="green" type="button">{{ str['back'] }}</button></a>
2023-04-06 22:09:26 +02:00
</div>
2023-04-07 15:21:44 +02:00
2023-04-06 22:09:26 +02:00
</div>
%for type, text, animation in get('alerts', []):
<div class="alerts {{ animation }}">
<div class="alert {{ type }}">{{ text }}</div>
</div>
%end
</main>
</body>
</html>