-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d56606
commit 9ab0faf
Showing
2 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,36 +8,32 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> | ||
<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>{% block content %}{% endblock %}</title> | ||
<title>CURL {% block content %}{% endblock %}</title> | ||
</head> | ||
<body> | ||
<header> | ||
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #9dbeb7"> | ||
<a class="navbar-brand" href="#">Curl</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/">Home</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/login">Login</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/register">Register</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/history">History</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/training">Training</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/aboutme">About Me</a> | ||
</li> | ||
</ul> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="#">Curl</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
{% if session["user_id"] %} | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"><a class="nav-link" href="/">Home</a></li> | ||
<li class="nav-item"><a class="nav-link" href="/history">History</a></li> | ||
<li class="nav-item"><a class="nav-link" href="/training">Training</a></li> | ||
<li class="nav-item"><a class="nav-link" href="/aboutme">About Me</a> | ||
<li class="nav-item"><a class="nav-link" href="/logout">Logout</a></li> | ||
</ul> | ||
{% else %} | ||
<ul class="navbar-nav"> | ||
<li class="nav-item"><a class="nav-link" href="/login">Login</a></li> | ||
<li class="nav-item"><a class="nav-link" href="/register">Register</a></li> | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
|