-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboilerplate.ejs
58 lines (47 loc) · 1.85 KB
/
boilerplate.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html ng-app="Mapp">
<head>
<title>test</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<link href="/css/font-awesome.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="/css/app.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<header>
<% if (!user) { %>
<div id="outer">
<div id="inner">
<div id="middle">
<button class="btn btn-default" onclick="location.href='/';" id="homeButton" submit-button>Home</button>
<button class="btn btn-default" onclick="location.href='/auth/google';" id="loginButton" submit-button>Login</button>
</div>
</div>
</div>
<% } else { %>
<div id="outer">
<div id="inner">
<div id="middle">
Hi <%= user.displayName %>
<button class="btn btn-default" onclick="location.href='/';" id="homeButton" submit-button>Home</button> |
<button class="btn btn-default" onclick="location.href='/account';" id="accountButton" submit-button>Account</button> |
<button class="btn btn-default" onclick="location.href='/logout';" id="logoutButton" submit-button>Log Out</button>
</div>
</div>
</div>
<% } %>
</header>
<section>
<%-body -%>
</section>
<footer>
</footer>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=drawing&sensor=false"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script>
<script src="/js/ng-map.js"></script>
<script>
</script>
</body>
</html>