-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
112 lines (95 loc) · 4.6 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="Your Next Intern"
content="Your Next Intern is a web application built to aid the search for interns and internship by companies and students respectively">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- ntegrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="../static/styles/common.css">
<link rel="stylesheet" href="../static/styles/header.css">
<link rel="icon" href="../static/images/yni_logo.png" />
<!--CUSTOM STYLES IN CHILD TEMPLATES-->
{% block head %}
{% endblock %}
<!-- END CUSTOM STYLES -->
<script defer src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
{% block script %}
{% endblock %}
<title>{% block title %}{% endblock %} | Your Next Intern</title>
</head>
<body>
<!-- HEADER -->
<header class="header">
<!--LINKS-->
<nav class="nav-bar navbar navbar-expand-lg navbar-expand-md fixed-top">
<div class="container-fluid">
<a class="navbar-brand logo" href="{{ url_for('app_auth.go_home') }}">YNI</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsiblenav"
aria-controls="collapsiblenav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse navigation" id="collapsiblenav">
<ul class="nav-links navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"><a href="{{ url_for('app_auth.go_home') }}">Home</a></li>
<li class="nav-item"><a href="{{ url_for('app_views.all_companies') }}">Companies</a></li>
<li class="nav-item"><a href="{{ url_for('app_views.all_interns') }}">Interns</a></li>
{% if current_user.is_authenticated %}
{% if user_class == 'Intern' %}
<li class="nav-item"><a
href="{{ url_for('app_views.intern_profile', intern_id=current_user.id, _external=True) }}">
Intern Profile</a></li>
{% elif user_class == 'Company' %}
<li class="nav-item"><a
href="{{ url_for('app_views.company_profile', org_id=current_user.id, _external=True) }}">
Company Profile</a></li>
{% endif %}
<li class="nav-item"><a href="{{ url_for('app_auth.logout') }}"> Logout</a></li>
{% else %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle drop-button" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Register
</a>
<ul class="btn btn-secondary dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item drop-item" href="{{ url_for('app_auth.intern_signup') }}">Intern</a></li>
<li><a class="dropdown-item drop-item" href="{{ url_for('app_auth.org_signup') }}">Company</a></li>
</ul>
</li>
<li class="nav-item"><a href="{{ url_for('app_auth.login') }}"> Sign In</a></li>
{% endif %}
</ul>
</div>
</div>
</nav>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{% if category == 'error' %}
<div class="alert alert-danger alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% else %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}
{% endblock %}
<!-- <footer class=" footer"></footer> -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
</body>
</html>