source: trunk/templates/base.html@ 19

Last change on this file since 19 was 19, checked in by JohnLightfoot, 10 years ago

add padding, change resources directory

File size: 2.7 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="description" content="">
8 <meta name="author" content="">
9 <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
10
11 <title>FISICA Results Navigator</title>
12
13 <!-- Bootstrap core CSS -->
14 <link href="resources/bootstrap.css" rel="stylesheet">
15
16 <!-- Custom styles for this template -->
17 <link href="navbar-fixed-top.css" rel="stylesheet">
18
19 <!-- Pad top of body otherwise it disappears under the navbar -->
20 <style>
21 body {
22 padding-top: 60px;
23 }
24 </style>
25
26 <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
27 <!--[if lt IE 9]>
28 <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
29 <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
30 <![endif]-->
31 </head>
32
33 <body>
34
35 <!-- Fixed navbar -->
36 <div class="navbar navbar-default navbar-fixed-top" role="navigation">
37 <div class="container">
38 <div class="navbar-header">
39 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
40 <span class="sr-only">Toggle navigation</span>
41 <span class="icon-bar"></span>
42 <span class="icon-bar"></span>
43 <span class="icon-bar"></span>
44 </button>
45 <a class="navbar-brand" href="#">FISICA</a>
46 </div>
47 <div class="navbar-collapse collapse">
48 <ul class="nav navbar-nav">
49 % for stage in context['data'].items():
50 % if stage[0] == context['renderstage']:
51 <li class="active"><a href="#">${stage[0]}</a></li>
52 % else:
53 % if 'substages' in stage[1].keys():
54 <!-- link to the first substage page in place of having a stage page -->
55 <li><a href="${stage[0]}-${stage[1]['substages'].keys()[0]}.html">${stage[0]}</a></li>
56 % else:
57 <li><a href="${stage[0]}.html">${stage[0]}</a></li>
58 % endif
59 % endif
60 % endfor
61 </ul>
62 </div><!--/.nav-collapse -->
63 </div>
64 </div>
65
66 <!--render the main body of the inheriting class-->
67 ${next.body()}
68
69 <!-- Bootstrap core JavaScript
70 ================================================== -->
71 <!-- Placed at the end of the document so the pages load faster -->
72 <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
73 <script src="resources/bootstrap.min.js"></script>
74 </body>
75</html>
76
Note: See TracBrowser for help on using the repository browser.