source: tmcsimulator/branches/LCSv1/views/layout.html @ 593

Revision 593, 4.9 KB checked in by jdalbey, 6 years ago (diff)

Add branch LCSv1

Line 
1<!DOCTYPE html>
2<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{{=T.accepted_language or 'en'}}"> <!--<![endif]-->
3  <head>
4    <meta charset="utf-8">
5    <!-- www.phpied.com/conditional-comments-block-downloads/ -->
6    <!-- Always force latest IE rendering engine
7         (even in intranet) & Chrome Frame
8         Remove this if you use the .htaccess -->
9    <meta http-equiv="X-UA-Compatible" content="IE=edge{{=not request.is_local and ',chrome=1' or ''}}">
10    <!--  Mobile Viewport Fix
11          j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
12          device-width: Occupy full width of the screen in its current orientation
13          initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
14          user-scalable = yes allows the user to zoom in -->
15    <meta name="viewport" content="width=device-width, initial-scale=1.0">
16    <title>{{=response.title or request.application}}</title>
17    <!-- http://dev.w3.org/html5/markup/meta.name.html -->
18    <meta name="application-name" content="{{=request.application}}">
19    <!-- Speaking of Google, don't forget to set your site up:
20         http://google.com/webmasters -->
21    <meta name="google-site-verification" content="">
22    <!-- include stylesheets -->
23    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
24    <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/>
25    <link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap4.css')}}"/>
26    <link rel="stylesheet" href="{{=URL('static','css/lcstrain.css')}}"/>
27    <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon">
28    <link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}">
29    <!-- All JavaScript at the bottom, except for Modernizr which enables
30         HTML5 elements & feature detects -->
31    <script src="{{=URL('static','js/modernizr-2.8.3.min.js')}}"></script>
32    <!-- Favicons -->
33    {{include 'web2py_ajax.html'}} <!-- this includes jquery.js, calendar.js/.css and web2py.js -->
34    {{block head}}{{end}}
35  </head>
36  <body>
37    <div class="w2p_flash alert alert-dismissable">{{=response.flash or ''}}</div>
38      <div class="container" id="banner">
39          <div class = "toplinks" style = "float:right">
40<a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;<a href="index.html">Logout</a>
41          </div>
42          <div class="lcslogo">
43             <h2>
44                 Lane Closure System
45              </h2>
46          </div>
47      </div>
48    </div>
49    <!-- Navbar ======================================= -->
50    <nav class="navbar navbar-light navbar-expand-md bg-faded bg-dark navbar-dark justify-content-center">
51       <a href="index.html" class="navbar-brand d-flex w-50 mr-auto"></a>
52       <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
53         <span class="navbar-toggler-icon"></span>
54       </button>
55       <div class="navbar-collapse collapse w-100" id="navbarNavDropdown">
56         <ul class="navbar-nav w-100 justify-content-center">
57          {{for _item in response.menu or []:}}
58          {{if len(_item)<4 or not _item[3]:}}
59          <li class="nav-item {{if _item[1]:}}active{{pass}}">
60            <a class="nav-link" href="{{=_item[2]}}">{{=_item[0]}}</a>
61          </li>
62          {{else:}}
63          <li class="nav-item dropdown">
64            <a class="nav-link dropdown-toggle" href="{{=_item[2]}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{=_item[0]}}</a>
65            <div class="dropdown-menu">
66              {{for _subitem in _item[3]:}}
67              <a class="dropdown-item" href="{{=_subitem[2]}}">{{=_subitem[0]}}</a>
68              {{pass}}
69            </div>
70          </li>
71          {{pass}}
72          {{pass}}
73        </ul>
74       
75      </div>
76    </nav>
77
78    <!-- Masthead ===================================== -->
79    {{block header}}
80    {{end}}
81    <!-- Main ========================================= -->
82    <!-- Begin page content -->
83    <div class="container-fluid main-container">
84      {{include}}
85      {{=response.toolbar() if response.show_toolbar else ''}}
86    </div>
87
88    {{block footer}}
89    {{end}}
90    <!-- The javascript =============================== -->
91    <script src="{{=URL('static','js/bootstrap.bundle.min.js')}}"></script>
92    <script src="{{=URL('static','js/web2py-bootstrap4.js')}}"></script>
93    {{block page_js}}{{end page_js}}
94    {{if response.google_analytics_id:}}
95    <!-- Analytics ==================================== -->
96    <script src="{{=URL('static','js/analytics.min.js')}}"></script>
97    <script type="text/javascript">
98      analytics.initialize({
99      'Google Analytics':{trackingId:'{{=response.google_analytics_id}}'}
100      });
101    </script>
102   {{pass}}
103  </body>
104</html>
Note: See TracBrowser for help on using the repository browser.