X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fviews%2Flayouts%2Ftest.html.erb;h=6e89624b556f99016d889191b17cc22e91312b03;hb=4de70a43f48c9becfd180631289f7a4d480bb5b8;hp=9bb1395efef8c1da06777bf674024f9fe3206d99;hpb=2b2bb5b365e839906e7e411af3c9fc08ea6c4898;p=pettanr%2Fpettanr.git diff --git a/app/views/layouts/test.html.erb b/app/views/layouts/test.html.erb index 9bb1395e..6e89624b 100644 --- a/app/views/layouts/test.html.erb +++ b/app/views/layouts/test.html.erb @@ -1,47 +1,109 @@ - Pettanr - <%= stylesheet_link_tag "application" %> + + <% if @page_title %> + <%= h @page_title %> + <% else %> + <%= t("#{params[:controller]}.#{params[:action]}.title") %> + <% end %> + - <%= h(MagicNumber['profile']['users']['caption']) %> + + <%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> + <%= raw panel_editor_javascript_include_tags %> <%= csrf_meta_tags %> -
-<% if user_signed_in? %> - <%= link_to "my home", :controller => '/home' %> - <%= link_to "sign out", destroy_user_session_path, :method => :delete %> -<% else %> - <%= link_to "sign in", new_user_session_path %> -<% end %> +
+ + + + + + + +
+

<%= link_to MagicNumber['profile']['users']['caption'], main_app.root_path %>

+
+ <% if user_signed_in? %> + <%# link_to t('top.metro.title'), '/top/metro' %> + <% end %> + +
+ <% if @author %> + <%= link_to h(truncate(@author.name, :length => 12)), main_app.author_path(@author) %> + <% end %> +
+
+ <% if @artist %> + <%= link_to h(truncate(@artist.name, :length => 12)), main_app.artist_path(@artist) %> + <% end %> +
+
+ <% if user_signed_in? %> + <%= link_to t('home.configure.title'), '/home/configure' %> + <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %> + <% else %> + <%= link_to "sign in", main_app.new_user_session_path %> + <% end %> +
+
+
+ <%= link_to t('tab.reader.title'), '/' %> + <%= link_to t_m('Comic'), main_app.comics_path %> + <%= link_to t_m('Scroll'), main_app.scrolls_path %> + <%= link_to t_m('Panel'), main_app.panels_path %> + <%= link_to t_m('ResourcePicture'), main_app.resource_pictures_path %> + <%= link_to t_m('SpeechBalloonTemplate'), main_app.speech_balloon_templates_path %> + : + <%= link_to t_m('Author'), main_app.authors_path %> + <%= link_to t_m('Artist'), main_app.artists_path %>
-
-<% if admin_signed_in? %> - <%= link_to "system", :controller => '/system' %> - <%= link_to "sign out", destroy_admin_session_path, :method => :delete %> -<% else %> - <%= link_to "sign in", new_admin_session_path %> +<% if @author %> +
+ <%= link_to t('tab.creator.home'), '/home' %> + <%= link_to t('tab.creator.comic'), '/home/comics' %> + <%= link_to t('tab.creator.story'), '/home/stories' %> + <%= link_to t('tab.creator.sheet'), '/home/sheets' %> + <%= link_to t('tab.creator.scroll'), '/home/scrolls' %> + <%= link_to t('tab.creator.panel'), '/home/panels' %> + <% if @artist %> + <%= link_to t('tab.creator.original_picture'), main_app.original_pictures_path %> + <%= link_to t('tab.creator.resource_picture'), '/home/resource_pictures' %> + <% end %> + <% if @author and @author.working? -%> + <%= link_to t('tab.creator..catch'), main_app.panel_path(@author.working_panel) %> + <% end -%> +
<% end %> +<%= yield %> +
+ <%= link_to t('tab.demander.title'), main_app.demanders_path %> + <% if demand_user_signed_in? %> + <%= link_to t_m('Demander'), main_app.demanders_path %> + <%= link_to t('home.sign_out.title'), main_app.destroy_demand_user_session_path, :method => :delete %> + <% else %> + <%= link_to t('home.sign_in.title'), main_app.new_demand_user_session_path %> + <% end %>
-
-

<%= notice %>

-

<%= alert %>

-<%= link_to 'comics', comics_path %> -<%= link_to 'panels', panels_path %> -<%= link_to 'original_pictures', original_pictures_path %> -<%= link_to 'resource_pictures', resource_pictures_path %> -<%= link_to 'panel_pictures', panel_pictures_path %> -<%= link_to 'speech_balloons', speech_balloons_path %> -<%= link_to 'balloons', balloons_path %> -<%= link_to 'speeches', speeches_path %> - : -<%= link_to 'speech_balloon_templates', speech_balloon_templates_path %> - : -<%= link_to 'artists', artists_path %> -<%= link_to 'system_pictures', system_pictures_path %> +
+ <%= link_to t('tab.system.title'), '/system' %> + <% if admin_signed_in? %> + <%= link_to t('tab.system.browse'), '/system/browse' %> + <%= link_to t('tab.system.approve'), '/system/waiting_list' %> + <%= link_to t('tab.system.port'), '/system/import' %> + <%= link_to t('tab.system.token'), '/system/auth_token' %> + <%= t('tab.system.layout') %>: + <%= link_to t('tab.system.test'), '/system/test_layout' %> + <%= link_to t('tab.system.production'), '/system/production_layout' %> + <%= link_to t('home.sign_out.title'), main_app.destroy_admin_session_path, :method => :delete %> + <% else %> + <%= link_to t('home.sign_in.title'), main_app.new_admin_session_path %> + <% end %>
-<%= yield %> +<%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>