OSDN Git Service

fix js folder
[pettanr/pettanr.git] / app / views / layouts / application.html.erb
index 22a644c..49436c3 100644 (file)
-<!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>\r
+<html>\r
+<head>\r
+  <title>\r
+    <% if @page_title %>\r
+      <%= h @page_title %>\r
+    <% else %>\r
+      <%= t("#{params[:controller]}.#{params[:action]}.title") %>\r
+    <% end %>\r
+    - <%= h(manifest.magic_numbers['profile']['users']['caption']) %>\r
+  </title>\r
+  <%= stylesheet_link_tag "test" %>\r
+  <%= javascript_include_tag "application" %>\r
+  <%= csrf_meta_tags %>\r
+</head>\r
+<body>\r
+\r
+<div width="100%">\r
+<table class="no-border">\r
+  <tr>\r
+    <td width="50%">\r
+      <h3><%= link_to manifest.magic_numbers['profile']['users']['caption'], main_app.root_path %></h3>\r
+    </td>\r
+    <td width="30%">\r
+      <% if user_signed_in? %>\r
+        <%# link_to t('top.metro.title'), '/top/metro' %>\r
+      <% end %>\r
+    </td>\r
+    <td>\r
+      <div>\r
+        <% if @operators.author %>\r
+          <%= link_to h(truncate(@operators.author.name, :length => 12)), main_app.author_path(@operators.author) %>\r
+        <% end %>\r
+      </div>\r
+      <div>\r
+        <% if @operators.artist %>\r
+          <%= link_to h(truncate(@operators.artist.name, :length => 12)), main_app.artist_path(@operators.artist) %>\r
+        <% end %>\r
+      </div>\r
+    </td>\r
+    <td>\r
+      <% if user_signed_in? %>\r
+        <%= link_to t('home.configure.title'), '/home/configure' %>\r
+        <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>\r
+      <% else %>\r
+        <%= link_to "sign in", main_app.new_user_session_path %>\r
+      <% end %>\r
+      <br>\r
+          <%= link_to 'try ap', '/top/ap' %>\r
+  </td>\r
+  </tr>\r
+</table>\r
+</div>\r
+<div width="100%" style="background-color: #ddfadd; padding: 5px;">\r
+  <%= link_to t_m('Folder'), main_app.root_folders_path() %>\r
+  :\r
+  <%= link_to t('tab.reader.title'), '/' %>\r
+  <%= link_to t_m('Scroll'), main_app.scrolls_path %>\r
+  <%= link_to t_m('Panel'), main_app.panels_path %>\r
+  <%= link_to t_m('ResourcePicture'), main_app.resource_pictures_path %>\r
+  :\r
+  <%= link_to t('tab.creator.home'), '/home' %>\r
+  <% if @operators.author %>\r
+    <%= link_to t('tab.creator.scroll'), '/home/scrolls' %>\r
+    <%= link_to t('*'), main_app.new_scroll_path %>\r
+    <%= link_to t('tab.creator.panel'), '/home/panels' %>\r
+    <%= link_to t('*'), main_app.new_panel_path %>\r
+  <% end -%>\r
+  <% if @operators.artist %>\r
+    <%= link_to t('tab.creator.original_picture'), main_app.original_pictures_path %>\r
+    <%= link_to t('*'), main_app.new_original_picture_path %>\r
+    <%= link_to t('tab.creator.resource_picture'), '/home/resource_pictures' %>\r
+  <% end %>\r
+</div>\r
+<%= yield %>\r
+<div width="100%" style="background-color: #faddfa; padding: 5px;">\r
+  <%= link_to t('tab.demander.title'), main_app.demanders_path %>\r
+  <% if demand_user_signed_in? %>\r
+    <%= link_to t_m('Demander'), main_app.demanders_path %>\r
+    <%= link_to t('home.sign_out.title'), main_app.destroy_demand_user_session_path, :method => :delete %>\r
+  <% else %>\r
+    <%= link_to t('home.sign_in.title'), main_app.new_demand_user_session_path %>\r
+  <% end %>\r
+</div>\r
+<div width="100%" style="background-color: #ddddfa; padding: 5px;">\r
+  <%= link_to t('tab.system.title'), '/system' %>\r
+  <% if admin_signed_in? %>\r
+    <%= link_to t('tab.system.browse'), '/system/browse' %>\r
+    <%= link_to t('tab.system.approve'), '/system/waiting_list' %>\r
+    <%= link_to t('tab.system.port'), '/system/import' %>\r
+    <%= link_to t('tab.system.token'), '/system/auth_token' %>\r
+    <%= link_to t('home.sign_out.title'), main_app.destroy_admin_session_path, :method => :delete %>\r
+  <% else %>\r
+    <%= link_to t('home.sign_in.title'), main_app.new_admin_session_path %>\r
+  <% end %>\r
+</div>\r
+<%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
+\r
+</body>\r
+</html>\r