]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/templates/mobile/base.mako
began work on iphone-targeted web interface
[bluechips.git] / bluechips / templates / mobile / base.mako
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4   <head>
5     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6     <title>${self.title()}</title>
7     ${h.stylesheet_link('/css/main.css')}
8     <link media="only screen and (max-device-width: 480px)" href="/css/mobile.css" type="text/css" rel="stylesheet">
9     <meta name="viewport" content="width = device-width, user-scalable=no">
10     <link rel="apple-touch-icon" href="/icons/apple-touch.png">
11   </head>
12   <body>
13     ${next.body()}
14     ${h.javascript_link('/js/jquery-1.3.2.js')}
15     ${h.javascript_link('/js/mobile.js')}
16   </body>
17 </html>
18
19 <%def name="title()">BlueChips
20 % if c.title != '':
21   :: ${c.title}
22 % endif
23 </%def>
24
25 <%def name="formatUser(user)">
26   % if user == request.environ['user']:
27     <strong>Me</strong>
28   % else:
29     ${user.name}
30   % endif
31 </%def>