layout.html 1.65 KB
Newer Older
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
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE-edge"/>
	<title> {% block title %} {% endblock %} </title>
	<meta name="viewport" content="with-device-width, initial-scale-1"/>
	<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
</head>
<body>
	<nav class="navbar navbar-inverse">
      		<div class="container">
        		<div class="navbar-header">
          			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            				<span class="sr-only">Toggle navigation</span>
	            			<span class="icon-bar"></span>
	        	    		<span class="icon-bar"></span>
        	    			<span class="icon-bar"></span>
	        	  	</button>
        			<a class="navbar-brand" href="#">Simple IoT Server</a>
	        	</div>
        		<div id="navbar" class="collapse navbar-collapse">
	        		<ul class="nav navbar-nav">
        	    			<li><a href="#">Home</a></li>
					{% if session['name'] %}
	            			<li><a href="/logout">Logout</a></li>
					{% else %}
	            			<li><a href="/login">Login</a></li>
        	    			<li><a href="/signup">Signup</a></li>
					{% endif %}
	         		</ul>
        		</div><!--/.nav-collapse -->
      		</div>
    	</nav>

    	<div class="container">
		{% block content %} {% endblock %}
    	</div><!-- /.container -->

	<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>	
</body>
</html>