1 | <!DOCTYPE html> |
---|
2 | <html lang="{{=T.accepted_language or 'en'}}" class="no-js"><!-- no-js need it for modernzr --> |
---|
3 | <head> |
---|
4 | <meta charset="utf-8" /> |
---|
5 | <!-- www.phpied.com/conditional-comments-block-downloads/ --> |
---|
6 | <!--[if IE]><![endif]--> |
---|
7 | <!-- Always force latest IE rendering engine |
---|
8 | (even in intranet) & Chrome Frame |
---|
9 | Remove this if you use the .htaccess --> |
---|
10 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
---|
11 | |
---|
12 | <title>Web2py Mobile Admin</title> |
---|
13 | |
---|
14 | <!-- http://dev.w3.org/html5/markup/meta.name.html --> |
---|
15 | <meta name="application-name" content="{{=request.application}}" /> |
---|
16 | |
---|
17 | <!-- Speaking of Google, don't forget to set your site up: |
---|
18 | http://google.com/webmasters --> |
---|
19 | <meta name="google-site-verification" content="" /> |
---|
20 | |
---|
21 | <!-- Mobile Viewport Fix |
---|
22 | j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag |
---|
23 | device-width: Occupy full width of the screen in its current orientation |
---|
24 | initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height |
---|
25 | maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width |
---|
26 | --> |
---|
27 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
---|
28 | |
---|
29 | <!-- Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references --> |
---|
30 | <link rel="shortcut icon" href="{{=URL('static','favicon.ico')}}" type="image/x-icon"> |
---|
31 | <link rel="apple-touch-icon" href="{{=URL('static','favicon.png')}}"> |
---|
32 | |
---|
33 | <!-- For the less-enabled mobile browsers like Opera Mini --> |
---|
34 | <link rel="stylesheet" href="{{=URL('static','plugin_jqmobile/jquery.mobile-1.3.1.min.css')}}"> |
---|
35 | |
---|
36 | <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects --> |
---|
37 | <script src="{{=URL('static','js/modernizr.custom.js')}}"></script> |
---|
38 | |
---|
39 | {{include 'web2py_ajax.html'}} |
---|
40 | |
---|
41 | <script type="text/javascript"> |
---|
42 | //run this script after jQuery loads, but before jQuery Mobile loads |
---|
43 | |
---|
44 | //customize jQuery Mobile to let IE7+ in (Mobile IE) |
---|
45 | $(document).bind("mobileinit", function(){ |
---|
46 | $.extend( $.mobile , { |
---|
47 | |
---|
48 | //extend gradeA qualifier to include IE7+ |
---|
49 | gradeA: function(){ |
---|
50 | //IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683 |
---|
51 | var ie = (function() { |
---|
52 | var v = 3, div = document.createElement('div'), a = div.all || []; |
---|
53 | while (div.innerHTML = '<!--[if gt IE '+(++v)+']><br><![endif]-->', a[0]); |
---|
54 | return v > 4 ? v : !v; |
---|
55 | }()); |
---|
56 | |
---|
57 | //must either support media queries or be IE7+ |
---|
58 | return $.support.mediaquery || (ie && ie >= 7); |
---|
59 | } |
---|
60 | }); |
---|
61 | }); |
---|
62 | </script> |
---|
63 | |
---|
64 | <script src="{{=URL('static','plugin_jqmobile/jquery.mobile-1.3.1.min.js')}}"></script> |
---|
65 | |
---|
66 | <style> |
---|
67 | .error { color: red; } |
---|
68 | </style> |
---|
69 | </head> |
---|
70 | |
---|
71 | <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> |
---|
72 | <!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> |
---|
73 | <!--[if IE 7 ]> <body class="ie7"> <![endif]--> |
---|
74 | <!--[if IE 8 ]> <body class="ie8"> <![endif]--> |
---|
75 | <!--[if IE 9 ]> <body class="ie9"> <![endif]--> |
---|
76 | <!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]--> |
---|
77 | |
---|
78 | <div data-role="page"> |
---|
79 | <div data-role="header"> |
---|
80 | <h1>web2py mobile admin/{{block sectionclass}}{{end}}</h1> |
---|
81 | {{block header}} |
---|
82 | {{if 'auth' in globals():}} |
---|
83 | {{if not auth.user:}} |
---|
84 | <a rel="external" href="{{=URL('default','user',args='login')}}" data-icon="login" class="ui-btn-left">Login</a> |
---|
85 | {{else:}} |
---|
86 | <a rel="external" href="{{=URL('default','user',args='logout')}}" data-icon="logout" class="ui-btn-left">Logout</a> |
---|
87 | {{pass}} |
---|
88 | {{pass}} |
---|
89 | <a rel="external" href="{{=URL('default','index',vars=dict(is_mobile='true'))}}" data-icon="home" class="ui-btn-right">{{=T("Home")}}</a> |
---|
90 | {{end}} |
---|
91 | </div> |
---|
92 | <div data-role="content"> |
---|
93 | {{if response.flash:}}<div class="ui-body ui-body-e">{{=response.flash}}</div>{{pass}} |
---|
94 | {{if response.menu:}} |
---|
95 | <ul data-role="listview" data-inset="true"> |
---|
96 | <li data-role='list-divider'>{{=T("Main Menu")}}</li> |
---|
97 | {{for _ in response.menu:}} |
---|
98 | <li><a href="{{=_[2]}}">{{=_[0]}}</a></li> |
---|
99 | {{pass}} |
---|
100 | </ul> |
---|
101 | {{pass}} |
---|
102 | {{include}} |
---|
103 | </div> |
---|
104 | <div data-role="footer"> |
---|
105 | {{block footer}} |
---|
106 | powered by web2py - @{{=request.now.year}} |
---|
107 | {{end}} |
---|
108 | </div> |
---|
109 | </div> |
---|
110 | |
---|
111 | |
---|
112 | <!--[if lt IE 7 ]> |
---|
113 | <script src="{{=URL('static','plugin_jqmobile/dd_belatedpng.js')}}"></script> |
---|
114 | <script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script> |
---|
115 | <![endif]--> |
---|
116 | |
---|
117 | </body> |
---|
118 | </html> |
---|
119 | |
---|