2022-04-09 17:38:00 +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">
|
|
|
|
|
|
|
|
<title>{{ str['welcome'] }}</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="{{ url('static', filename='style.css') }}">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<main>
|
|
|
|
<h1>{{ str['welcome'] }} <span class="username">{{ data['username'] }}</span></h1>
|
|
|
|
|
|
|
|
<div class="grid-container">
|
2023-11-14 05:43:56 +01:00
|
|
|
<div class="grid-item">
|
2022-04-09 17:38:00 +02:00
|
|
|
<div class="user account">
|
|
|
|
<h5>{{ str['usr'] }}</h5>
|
|
|
|
<p>{{ data['firstname'] }} {{ data['surname'] }}</p>
|
|
|
|
</div>
|
2023-11-14 05:43:56 +01:00
|
|
|
</div>
|
2022-04-09 17:38:00 +02:00
|
|
|
|
2023-11-14 05:43:56 +01:00
|
|
|
<div class="grid-item">
|
2022-04-16 17:15:34 +02:00
|
|
|
% if data['fakeCn'] == True:
|
|
|
|
<a href="/edit_fullname" class="edit">{{ str['edit'] }}</a>
|
|
|
|
% end
|
2022-04-09 17:38:00 +02:00
|
|
|
</div>
|
2023-11-14 05:43:56 +01:00
|
|
|
|
|
|
|
<div class="grid-item">
|
2022-04-09 17:38:00 +02:00
|
|
|
<div class="email account">
|
|
|
|
<h5>{{ str['email'] }}</h5>
|
|
|
|
<p>{{ data['mail'] }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-14 05:43:56 +01:00
|
|
|
<div class="grid-item">
|
2022-04-16 17:15:34 +02:00
|
|
|
<a href="/edit_email">{{ str['edit'] }}</a>
|
2022-04-09 17:38:00 +02:00
|
|
|
</div>
|
2023-11-14 05:43:56 +01:00
|
|
|
|
|
|
|
<div class="grid-item">
|
2022-04-09 17:38:00 +02:00
|
|
|
<div class="account">
|
|
|
|
<h5>{{ str['pwd'] }}</h5>
|
|
|
|
<p>********</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-14 05:43:56 +01:00
|
|
|
<div class="grid-item">
|
|
|
|
<a href="/change_pwd">{{ str['edit'] }}</a>
|
2023-11-10 13:12:15 +01:00
|
|
|
</div>
|
2023-11-14 05:43:56 +01:00
|
|
|
|
2023-11-16 05:35:57 +01:00
|
|
|
<!-- 2FA -->
|
2023-11-14 05:43:56 +01:00
|
|
|
<div class="grid-item">
|
|
|
|
<div class="account">
|
|
|
|
<h5>2FA</h5>
|
2023-11-16 05:35:57 +01:00
|
|
|
<p>Bi urratseko autentifikazioa</p>
|
2023-11-14 05:43:56 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid-item">
|
|
|
|
<!--<a href="/_2fa">{{'Kendu' if data['secureAuth'] == True else "Ezarri"}}</a>-->
|
2023-11-16 05:35:57 +01:00
|
|
|
% if data['secureAuth'] == True:
|
|
|
|
<a href="/_2fa"><i class='ri-toggle-fill'></i></a>
|
|
|
|
% else:
|
|
|
|
<a href="/_2fa"><i class='ri-toggle-line'></i></a>
|
|
|
|
%end
|
2023-11-14 05:43:56 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid-item">
|
2023-04-06 16:40:24 +02:00
|
|
|
<div class="account">
|
2023-04-07 15:21:44 +02:00
|
|
|
<h5>{{ str['logs'] }}</h5>
|
2023-04-06 16:40:24 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-14 05:43:56 +01:00
|
|
|
<div class="grid-item">
|
2023-04-07 15:21:44 +02:00
|
|
|
<a href="/logs">{{ str['show'] }}</a>
|
2023-04-06 16:40:24 +02:00
|
|
|
</div>
|
|
|
|
|
2022-04-09 17:38:00 +02:00
|
|
|
<div class="account">
|
|
|
|
<a href="/logout"><button class="green" type="button">{{ str['log-out'] }}</button></a>
|
|
|
|
<a href="/delete"><button class="red" type="button">{{ str['del'] }}</button></a>
|
|
|
|
</div>
|
2023-11-14 05:43:56 +01:00
|
|
|
|
2022-04-09 17:38:00 +02:00
|
|
|
</div>
|
|
|
|
|
2023-11-14 05:43:56 +01:00
|
|
|
|
2022-04-09 17:38:00 +02:00
|
|
|
%for type, text, animation in get('alerts', []):
|
|
|
|
<div class="alerts {{ animation }}">
|
|
|
|
<div class="alert {{ type }}">{{ text }}</div>
|
|
|
|
</div>
|
|
|
|
%end
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|