forked from nax3t/background-slider
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathheader.ejs
42 lines (39 loc) · 1.5 KB
/
header.ejs
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
<!DOCTYPE html>
<html>
<head>
<title>YelpCamp</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/stylesheets/main.css">
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/">YelpCamp</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<% if(!currentUser){ %>
<li><a href="/login">Login</a></li>
<li><a href="/register">Sign Up</a></li>
<% } else { %>
<li><a href="#">Signed In As <%= currentUser.username %></a></li>
<li><a href="/logout">Logout</a></li>
<% } %>
</ul>
</div>
</div>
</nav>
<div class="container">
<% if(error && error.length > 0){ %>
<div class="alert alert-danger" role="alert">
<%= error %>
</div>
<% } %>
<% if(success && success.length > 0){ %>
<div class="alert alert-success" role="alert">
<%= success %>
</div>
<% } %>
</div>