97 lines
3.9 KiB
Plaintext
97 lines
3.9 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Mail Notifier - <%= typeof title !== 'undefined' ? title : 'Serveur de mail avec notifications' %></title>
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Font Awesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<!-- Custom CSS -->
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<% if (typeof hideNavbar === 'undefined' || !hideNavbar) { %>
|
|
<!-- Sidebar -->
|
|
<div class="col-md-3 col-lg-2 px-0 bg-dark position-fixed" style="min-height:100vh">
|
|
<div class="d-flex flex-column p-3 text-white bg-dark" style="height:100%">
|
|
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
|
|
<i class="fas fa-envelope me-2"></i>
|
|
<span class="fs-4">Mail Notifier</span>
|
|
</a>
|
|
<hr>
|
|
<ul class="nav nav-pills flex-column mb-auto">
|
|
<li class="nav-item">
|
|
<a href="/" class="nav-link text-white <%= (typeof activePage !== 'undefined' && activePage === 'dashboard') ? 'active' : '' %>">
|
|
<i class="fas fa-tachometer-alt me-2"></i>
|
|
Tableau de bord
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="/emails" class="nav-link text-white <%= (typeof activePage !== 'undefined' && activePage === 'emails') ? 'active' : '' %>">
|
|
<i class="fas fa-envelope-open-text me-2"></i>
|
|
Emails reçus
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="/settings" class="nav-link text-white <%= (typeof activePage !== 'undefined' && activePage === 'settings') ? 'active' : '' %>">
|
|
<i class="fas fa-cog me-2"></i>
|
|
Paramètres
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<hr>
|
|
<div>
|
|
<a href="/logout" class="nav-link text-white">
|
|
<i class="fas fa-sign-out-alt me-2"></i>
|
|
Déconnexion
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Main content -->
|
|
<div class="col-md-9 col-lg-10 ms-auto p-4">
|
|
<% } else { %>
|
|
<!-- Full width content (for login page) -->
|
|
<div class="col-12 p-0">
|
|
<% } %>
|
|
|
|
<!-- Flash messages -->
|
|
<% if(typeof success_msg !== 'undefined' && success_msg.length > 0) { %>
|
|
<div class="alert alert-success alert-dismissible fade show">
|
|
<%= success_msg %>
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if(typeof error_msg !== 'undefined' && error_msg.length > 0) { %>
|
|
<div class="alert alert-danger alert-dismissible fade show">
|
|
<%= error_msg %>
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if(typeof error !== 'undefined' && error.length > 0) { %>
|
|
<div class="alert alert-danger alert-dismissible fade show">
|
|
<%= error %>
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
<% } %>
|
|
|
|
<!-- Content -->
|
|
<%- typeof body !== 'undefined' ? body : '' %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bootstrap JS Bundle -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<!-- Custom JS -->
|
|
<script src="/js/main.js"></script>
|
|
</body>
|
|
</html> |