<%= stylesheet_link_tag "test" %> <%= javascript_include_tag "application" %> <%= 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 %>
<%= 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' %> <%= 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 + ';' %>