<%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> <%= raw panel_editor_javascript_include_tags %> <%= csrf_meta_tags %>

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

<% if user_signed_in? %> <%# link_to t('top.metro.title'), '/top/metro' %> <% end %>
<% if @operators.author %> <%= link_to h(truncate(@operators.author.name, :length => 12)), main_app.author_path(@operators.author) %> <% end %>
<% if @operators.artist %> <%= link_to h(truncate(@operators.artist.name, :length => 12)), main_app.artist_path(@operators.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 %>
<%= link_to t('tab.creator.home'), '/home' %> <% if @operators.author %> <%= link_to t('tab.creator.comic'), '/home/comics' %> <%= link_to t('*'), main_app.new_comic_path %> <%= link_to t('tab.creator.story'), '/home/stories' %> <%= link_to t('tab.creator.sheet'), '/home/sheets' %> <%= link_to t('*'), main_app.new_sheet_path %> <%= link_to t('tab.creator.scroll'), '/home/scrolls' %> <%= link_to t('*'), main_app.new_scroll_path %> <%= link_to t('tab.creator.panel'), '/home/panels' %> <%= link_to t('*'), main_app.new_panel_path %> <% end -%> <% if @operators.artist %> <%= link_to t('tab.creator.original_picture'), main_app.original_pictures_path %> <%= link_to t('*'), main_app.new_original_picture_path %> <%= link_to t('tab.creator.resource_picture'), '/home/resource_pictures' %> <% end %> <% if @operators.author and @operators.author.working? -%> <%= link_to t('tab.creator..catch'), main_app.panel_path(@operators.author.working_panel) %> <% 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 %>
<%= 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 %>
<%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>