-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathlayout.erb
42 lines (37 loc) · 1.96 KB
/
layout.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tasklist</title>
<% is_bb6 = System::get_property('platform') == 'Blackberry' && (System::get_property('os_version').split('.')[0].to_i >= 6) %>
<% if !System::get_property('webview_framework') =~ /^MOTOROLA/ %>
<% if is_bb6 %>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<% else %>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<% end %>
<% end %>
<% if System::get_property('platform') == 'WP7' %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<% end %>
<% if System::get_property('platform') == 'APPLE' %>
<link href="/public/css/iphone.css" type="text/css" rel="stylesheet"/>
<% elsif System::get_property('platform') == 'ANDROID' %>
<link href="/public/css/android.css" type="text/css" rel="stylesheet"/>
<% elsif is_bb6 %>
<link href="/public/css/android.css" type="text/css" rel="stylesheet"/>
<% elsif System::get_property('platform') == 'Blackberry' %>
<link href="/public/css/blackberry.css" type="text/css" rel="stylesheet"/>
<% elsif System::get_property('platform') == 'WP7' %>
<link href="/public/css/windows_mobile.css" type="text/css" rel="stylesheet"/>
<script src="/public/js/wp7.js" type="text/javascript"></script>
<% elsif System::get_property('webview_framework') =~ /^WEBKIT/ %>
<link href="/public/css/re_webkit.css" type="text/css" rel="stylesheet"/>
<% elsif System::get_property('platform') == 'WINDOWS' %>
<link href="/public/css/windows_mobile.css" type="text/css" rel="stylesheet"/>
<% end %>
</head>
<body>
<%= @content %>
</body>
</html>