OSDN Git Service

heroku
[pettanr/pettanr.git] / app / views / layouts / application.html.erb
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
2 <html xmlns:v="urn:schemas-microsoft-com:vml">\r
3         <head>\r
4                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
5                 <meta http-equiv="Content-Language" content="ja">\r
6                 <meta http-equiv="Content-Script-Type" content="text/javascript">\r
7                 <meta http-equiv="Content-Style-Type" content="text/css">\r
8                 <meta http-equiv="imagetoolbar" content="no">\r
9                 <title>Pettanr</title>\r
10                 <%= stylesheet_link_tag "system.css" %>\r
11                 <%= stylesheet_link_tag "peta.common.css" %>\r
12                 <%= csrf_meta_tags %>\r
13         </head>\r
14         <body>\r
15                 <div id="server-content" class="">\r
16                         <%= yield %>\r
17                 </div>\r
18                 <div id="esc-msg" style="border:1px red solid;padding:10px;margin:10px;cursor:pointer;">[ESC] キーを押すと Metro ホームに入るよ.ホームの一番最後のタイルをクリックすると このページに戻るよ.</div>\r
19                 <div id="server-page-close-button" class="button" style="width:100px;margin:1em;">ホームへ</div>\r
20    <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
21                 <%= javascript_include_tag "jquery-162min" %>\r
22                 <%= javascript_include_tag "system" %>\r
23                 <% if current_user %>\r
24 \r
25                   <script type="text/javascript">\r
26                     current_author = {\r
27                       id: <%= @author ? @author.id : 0 %>,\r
28                       name: "<%= @author ? h(@author.name) : '' %>"\r
29                     }\r
30                     <% if @artist and @artist.id %>\r
31                       current_artist = {\r
32                         id: <%= @artist.id %>,\r
33                         name: "<%= h(@artist.name) %>"\r
34                       }\r
35                     <% end %>\r
36                   </script>\r
37                 <% end %>\r
38                 <%= javascript_include_tag "peta-common" %>\r
39                 <%= javascript_include_tag "peta-apps" %>\r
40                 <%= javascript_include_tag "pongame" %>\r
41         </body>\r
42 </html>\r