layout.html 1.72 KB
Newer Older
1
2
3
4
5
6
7
8
<!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"/>
Vladislav Rykov's avatar
Vladislav Rykov committed
9
	<link rel="stylesheet" type="text/css" href="static/custom.css"/>
10
11
12
13
14
15
16
17
18
19
20
</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>
Vladislav Rykov's avatar
Vladislav Rykov committed
21
        			<a class="navbar-brand" href="/">HPC&A IoT Server</a>
22
23
24
	        	</div>
        		<div id="navbar" class="collapse navbar-collapse">
	        		<ul class="nav navbar-nav">
Vladislav Rykov's avatar
Vladislav Rykov committed
25
        	    			<li><a href="/">Home</a></li>
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
					{% 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>