| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8" /> |
| <meta |
| name="viewport" |
| content="width=device-width, initial-scale=1.0" |
| /> |
| <title>{{ title }} - Parkinson's Detector</title> |
|
|
| |
| <link |
| href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" |
| rel="stylesheet" |
| integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" |
| crossorigin="anonymous" |
| /> |
| <link |
| rel="stylesheet" |
| href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" |
| integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" |
| crossorigin="anonymous" |
| referrerpolicy="no-referrer" |
| /> |
|
|
| |
| <link |
| rel="stylesheet" |
| href="{{ url_for('static', filename='css/style.css') }}" |
| /> |
| </head> |
| <body> |
| |
| |
| |
| <nav |
| class="navbar navbar-expand-lg navbar-light bg-white fixed-top shadow-sm" |
| > |
| <div class="container"> |
| <a |
| class="navbar-brand fw-bold text-primary" |
| href="{{ url_for('main.index') }}" |
| > |
| <i class="fas fa-brain me-2"></i>Parkinson's Detector |
| </a> |
| <button |
| class="navbar-toggler" |
| type="button" |
| data-bs-toggle="collapse" |
| data-bs-target="#mainNavbar" |
| aria-controls="mainNavbar" |
| aria-expanded="false" |
| aria-label="Toggle navigation" |
| > |
| <span class="navbar-toggler-icon"></span> |
| </button> |
| <div |
| class="collapse navbar-collapse" |
| id="mainNavbar" |
| > |
| <ul class="navbar-nav ms-auto mb-2 mb-lg-0"> |
| |
| {% if current_user.is_anonymous %} |
| <li class="nav-item"> |
| <a |
| class="nav-link" |
| href="{{ url_for('auth.login') }}" |
| >Login</a |
| > |
| </li> |
| <li class="nav-item"> |
| <a |
| class="nav-link btn btn-primary text-white btn-sm ms-2 px-3" |
| href="{{ url_for('auth.register') }}" |
| >Register</a |
| > |
| </li> |
|
|
| |
| {% else %} |
| <li class="nav-item"> |
| <a |
| class="nav-link" |
| href="{{ url_for('main.dashboard') }}" |
| >Dashboard</a |
| > |
| </li> |
|
|
| |
| {% if current_user.is_admin %} |
| <li class="nav-item"> |
| <a |
| class="nav-link" |
| href="{{ url_for('main.admin_dashboard') }}" |
| >Admin</a |
| > |
| </li> |
| {% endif %} |
|
|
| <li class="nav-item"> |
| <a |
| class="nav-link" |
| href="{{ url_for('auth.logout') }}" |
| >Logout</a |
| > |
| </li> |
| {% endif %} |
| </ul> |
| </div> |
| </div> |
| </nav> |
|
|
| |
| |
| |
| <main> |
| {# This is the main block that all other templates will extend and fill. |
| #} {% block content %}{% endblock %} |
| </main> |
|
|
| |
| <script |
| src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" |
| integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" |
| crossorigin="anonymous" |
| ></script> |
|
|
| {# A block for page-specific JavaScript files #} {% block scripts %}{% |
| endblock %} |
| </body> |
| </html> |
|
|