OSDN Git Service

t#30328:create op import ...and pull
[pettanr/pettanr.git] / app / views / layouts / application.html.erb
index 22a644c..44212d5 100644 (file)
@@ -1,39 +1,42 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>Pettanr</title>
-  <%= stylesheet_link_tag    "application" %>
-  <%= javascript_include_tag "application" %>
-  <%= csrf_meta_tags %>
-</head>
-<body>
-
-<a href="/">ぺったんR</a>
-<div>
-<% if author_signed_in? %>
-  <%= link_to "my home", :controller => '/home' %>
-  <%= link_to "ログアウト", destroy_author_session_path, :method => :delete %>
-<% else %>
-  <%= link_to "ログイン", new_author_session_path %>
-<% end %>
-</div>
-<div>
-<% if admin_signed_in? %>
-  <%= link_to "system", :controller => '/system' %>
-  <%= link_to "ログアウト", destroy_admin_session_path, :method => :delete %>
-<% else %>
-  <%= link_to "管理者", new_admin_session_path %>
-<% end %>
-</div>
-<div>
- <p class="notice"><%= notice %></p>
- <p class="alert"><%= alert %></p>
-</div>
-<%= link_to "comics", comics_path %>
-<%= link_to "panels", panels_path %>
-<%= link_to "pictures", original_pictures_path %>
-<%= link_to "lisences", lisences_path %>
-<%= yield %>
-
-</body>
-</html>
+<!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>Pettanr</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