OSDN Git Service

t#30328:create op import ...and pull
[pettanr/pettanr.git] / app / views / layouts / metro.html.erb
diff --git a/app/views/layouts/metro.html.erb b/app/views/layouts/metro.html.erb
new file mode 100644 (file)
index 0000000..395ee09
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
+<html xmlns:v="urn:schemas-microsoft-com:vml">\r
+       <head>\r
+               <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
+               <meta http-equiv="Content-Language" content="ja">\r
+               <meta http-equiv="Content-Script-Type" content="text/javascript">\r
+               <meta http-equiv="Content-Style-Type" content="text/css">\r
+               <meta http-equiv="imagetoolbar" content="no">\r
+               <title><%= h(MagicNumber['profile']['caption']) %></title>\r
+               <%= stylesheet_link_tag "system.css" %>\r
+               <%= stylesheet_link_tag "peta.common.css" %>\r
+               <%= csrf_meta_tags %>\r
+       </head>\r
+       <body>\r
+               <div id="server-content" class="">\r
+                       <%= yield %>\r
+               </div>\r
+               <div id="esc-msg" style="border:1px red solid;padding:10px;margin:10px;cursor:pointer;">[ESC] キーを押すと Metro ホームに入るよ.ホームの一番最後のタイルをクリックすると このページに戻るよ.</div>\r
+               <div id="server-page-close-button" class="button" style="width:100px;margin:1em;">ホームへ</div>\r
+   <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
+               <%= javascript_include_tag "jquery-162min" %>\r
+               <%= javascript_include_tag "system" %>\r
+               <% if current_user %>\r
+\r
+                 <script type="text/javascript">\r
+                   current_author = {\r
+                     id: <%= @author ? @author.id : 0 %>,\r
+                     name: "<%= @author ? h(@author.name) : '' %>"\r
+                   }\r
+                   <% if @artist and @artist.id %>\r
+                     current_artist = {\r
+                       id: <%= @artist.id %>,\r
+                       name: "<%= h(@artist.name) %>"\r
+                     }\r
+                   <% end %>\r
+                 </script>\r
+               <% end %>\r
+               <%= javascript_include_tag "peta-common" %>\r
+               <%= javascript_include_tag "peta-apps" %>\r
+               <%= javascript_include_tag "pongame" %>\r
+       </body>\r
+</html>\r