OSDN Git Service

fix:error dlg
[pettanr/pettanr.git] / app / views / layouts / system.html.erb
index 124eefb..315bcd7 100644 (file)
@@ -1,9 +1,11 @@
 <!DOCTYPE html>
 <html>
 <head>
-  <title>Pettanr</title>
-  <%= stylesheet_link_tag "test.css" %>
-  <%= javascript_include_tag "application" %>
+  <title><%= Manifest.manifest.magic_numbers['profile']['admins']['caption'] %></title>
+  <%= stylesheet_link_tag "application" %>
+  <%# javascript_include_tag "application" %>
+  <%= javascript_include_tag "admin" %>
+  <%= raw panel_editor_javascript_include_tags %>
   <%= csrf_meta_tags %>
 </head>
 <body>
 <div>
 <% if user_signed_in? %>
   <%= link_to t('home.index.title'), '/home' %>
-  <%= link_to t('home.comics.title'), '/home/comic' %>
-  <%= link_to t('home.panels.title'), '/home/panel' %>
-  <%= link_to t('home.panel_pictures.title'), '/home/panel_picture' %>
-  <%= link_to h(truncate(@author.name, :length => 12)), main_app.author_path(@author) %>
-  <% if @artist %>
+  <% if @operators.author %>
+    <%= link_to t('home.scrolls.title'), '/home/scroll' %>
+    <%= link_to t('home.panels.title'), '/home/panel' %>
+    <%= link_to t('home.panel_pictures.title'), '/home/panel_picture' %>
+    <%= link_to h(truncate(@operators.author.name, :length => 12)), main_app.author_path(@operators.author) %>
+  <% end %>
+  <% if @operators.artist %>
     <%= link_to t('home.pictures.title'), main_app.original_pictures_path %>
-    <%= link_to h(truncate(@artist.name, :length => 12)), main_app.artist_path(@artist) %>
+    <%= link_to h(truncate(@operators.artist.name, :length => 12)), main_app.artist_path(@operators.artist) %>
   <% end %>
   <%= link_to t('home.configure.title'), '/home/configure' %>
   <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>
   <%= link_to "browse", '/system/browse' %>
   <%= link_to "approve", '/system/waiting_list' %>
   <%= link_to "token", '/system/auth_token' %>
-  layout:
-  <%= link_to "test", '/system/test_layout' %>
-  <%= link_to "production", '/system/production_layout' %>
   <%= link_to "sign out", main_app.destroy_admin_session_path, :method => :delete %>
 <% else %>
   <%= link_to "sign in", main_app.new_admin_session_path %>
 <% end %>
 </div>
 <div>
-user.resources
-<%= link_to 'comics', main_app.comics_path %>
-<%= link_to 'stories', main_app.new_story_path %>
-<%= link_to 'panels', main_app.panels_path %>
-<%= link_to 'original_pictures', main_app.original_pictures_path %>
-<%= link_to 'resource_pictures', main_app.resource_pictures_path %>
-<%= link_to 'panel_pictures', main_app.panel_pictures_path %>
- : 
-<%= link_to 'authors', main_app.authors_path %>
-<%= link_to 'artists', main_app.artists_path %>
+  user.resources
+  <%= link_to 'scrolls', main_app.scrolls_path %>
+  <%= link_to 'scroll_panels', main_app.new_scroll_panel_path %>
+  <%= link_to 'panels', main_app.panels_path %>
+  <%= link_to 'original_pictures', main_app.original_pictures_path %>
+  <%= link_to 'resource_pictures', main_app.resource_pictures_path %>
+  <%= link_to 'panel_pictures', main_app.panel_pictures_path %>
  
+  <%= link_to 'authors', main_app.authors_path %>
+  <%= link_to 'artists', main_app.artists_path %>
 </div>
 <div>
-system.resources
-<%= link_to 'speech_balloon_templates', main_app.speech_balloon_templates_path %>
-<%= link_to 'license_groups', main_app.license_groups_path %>
-<%= link_to 'licenses', main_app.licenses_path %>
-<%= link_to 'colors', main_app.colors_path %>
-<%= link_to 'system_pictures', main_app.system_pictures_path %>
+  system.resources
+  <%= link_to 'speech_balloon_templates', main_app.speech_balloon_templates_path %>
+  <%= link_to 'license_groups', main_app.license_groups_path %>
+  <%= link_to 'licenses', main_app.licenses_path %>
+  <%= link_to 'system_pictures', main_app.system_pictures_path %>
 </div>
 <%= yield %>
+<div>
+  <%= link_to "browse", '/system/browse' %>
+  <%= link_to "approve", '/system/waiting_list' %>
+  <%= link_to "import", '/system/import' %>
+  <%= link_to "token", '/system/auth_token' %>
+</div>
 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>
 
 </body>