|
| 1 | +{% set navigation_bar = [ |
| 2 | + ('/', 'index', 'Status'), |
| 3 | + ('/commands/', 'commands', 'Commands'), |
| 4 | + ('/factoids/', 'factoids', 'Factoids') |
| 5 | +] -%} |
| 6 | +{% set active_page = active_page|default('index') -%} |
1 | 7 | <!DOCTYPE html> |
2 | 8 | <html lang="en"> |
3 | 9 | <head> |
4 | 10 | {% block head %} |
5 | | - <meta charset="utf-8"> |
6 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
8 | | - <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> |
9 | | - <meta name="description" content=""> |
10 | | - <meta name="author" content=""> |
11 | | - <link rel="icon" href="../../favicon.ico"> |
| 11 | + <meta charset="utf-8"> |
| 12 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 13 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 14 | + <meta name="description" content=""> |
| 15 | + <meta name="author" content=""> |
| 16 | + <link rel="icon" href="../../favicon.ico"> |
12 | 17 |
|
13 | | - <title>{% block title %}{{ main_title }}{% endblock %}</title> |
| 18 | + <title>{% block title %}{{ main_title }}{% endblock %}</title> |
14 | 19 |
|
15 | | - <!-- Bootstrap core CSS --> |
16 | | - <link href="./s/css/bootstrap.min.css" rel="stylesheet"> |
17 | | - <link href="./s/css/style.css" rel="stylesheet"> |
| 20 | + <link href="./s/css/bootstrap.min.css" rel="stylesheet"> |
| 21 | + <link href="./s/css/style.css" rel="stylesheet"> |
18 | 22 |
|
19 | | - <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
20 | | - <!--[if lt IE 9]> |
21 | | - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
22 | | - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
23 | | - <![endif]--> |
| 23 | + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
| 24 | + <!--[if lt IE 9]> |
| 25 | + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
| 26 | + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
| 27 | + <![endif]--> |
24 | 28 | {% endblock %} |
25 | 29 | </head> |
26 | 30 |
|
|
40 | 44 | </div> |
41 | 45 | <div id="navbar" class="collapse navbar-collapse"> |
42 | 46 | <ul class="nav navbar-nav"> |
43 | | - <li class="active"><a href="#">Home</a></li> |
44 | | - <li><a href="#about">About</a></li> |
45 | | - <li><a href="#contact">Contact</a></li> |
| 47 | + {% for href, id, caption in navigation_bar %} |
| 48 | + <li{% if id == active_page %} class="active"{% endif %}><a href="{{ href|e }}">{{ caption|e }}</a> |
| 49 | + </li> |
| 50 | + {% endfor %} |
46 | 51 | </ul> |
47 | 52 | </div> |
48 | 53 | <!--/.nav-collapse --> |
|
52 | 57 | <div class="container"> |
53 | 58 | {% block content %}{% endblock %} |
54 | 59 | </div> |
55 | | -<!-- /.container --> |
56 | 60 |
|
57 | | - |
58 | | -<!-- Bootstrap core JavaScript |
59 | | -================================================== --> |
60 | | -<!-- Placed at the end of the document so the pages load faster --> |
| 61 | +<!-- javascript --> |
61 | 62 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> |
62 | 63 | <script src="./s/js/bootstrap.min.js"></script> |
63 | 64 | <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> |
|
0 commit comments