-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.html
78 lines (62 loc) · 3.96 KB
/
layout.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, width=device-width">
<!-- http://getbootstrap.com/docs/4.5/ -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link href="/static/books.1.ico" rel="icon">
<link href="/static/styles.css" rel="stylesheet">
<!-- http://getbootstrap.com/docs/4.5/ -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<title>Assess Enigma: {% block title %}{% endblock %}</title>
</head>
<body>
<div id="fff">
<nav class="navbar navbar-expand-md navbar-light bgc"/>
{% if session.creator_id %}
<a class="navbar-brand" href="/WelcomeCreator"><span class="white"><img src="/static/books.png">A﹩﹩e﹩﹩ ENIGMA</span></a>
{% elif session.user_id %}
<a class="navbar-brand" href="/WelcomeUser"><span class="white"><img src="/static/books.png">A﹩﹩e﹩﹩ ENIGMA</span></a>
{% else %}
<a class="navbar-brand" href="/"><span class="white"><img src="/static/books.png">A﹩﹩e﹩﹩ ENIGMA</span></a>
{% endif %}
<button aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbar" data-toggle="collapse" type="button">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar">
{% if session.creator_id %}
<ul class="navbar mr-auto mt-2 txt">
<li class="nav-item"><a class="nav-link txt" href="/create"><b>Create</b></a></li>
<li class="nav-item"><a class="nav-link txt" href="/created"><b>Created</b></a></li>
<li class="nav-item"><a class="nav-link txt" href="/responsesC"><b>Responses</b></a></li>
</ul>
<ul class="navbar ml-auto mt-2">
<li class="nav-item"><a class="nav-link txt" href="/logout"><b>Log Out</b></a></li>
</ul>
{% elif session.user_id %}
<ul class="navbar mr-auto mt-2">
<li class="nav-item"><a class="nav-link txt" href="/attempt">Attempt</a></li>
<li class="nav-item"><a class="nav-link txt" href="/responsesU">Responses</a></li>
</ul>
<ul class="navbar ml-auto mt-2">
<li class="nav-item"><a class="nav-link txt" href="/logout"><b>Log Out</b></a></li>
</ul>
{% else %}
<ul class="navbar ml-auto mt-2">
<li class="nav-item"><a class="nav-link txt" href="/register">Register</a></li>
<li class="nav-item"><a class="nav-link txt" href="/login">Log In</a></li>
</ul>
{% endif %}
</div>
</nav>
<main class="container p-5">
{% block main %}{% endblock %}
</main>
<footer class="text-center cl">
<b><mark>© Sahilsher Singh Sandhu</mark></b>
</footer>
</div>
</body>
</html>