OSDN Git Service

ce898c3462ae69e554d5bc36c4f70d4bd5e8d3a9
[pettanr/pettanr.git] / app / views / layouts / system.html.erb
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <title><%= h(Manifest.manifest.magic_numbers['profile']['admins']['caption']) %></title>
5   <%= stylesheet_link_tag "application" %>
6   <%= javascript_include_tag "application" %>
7   <%= javascript_include_tag "admin" %>
8   <%= raw panel_editor_javascript_include_tags %>
9   <%= csrf_meta_tags %>
10 </head>
11 <body>
12
13 <div>
14 <% if user_signed_in? %>
15   <%= link_to t('home.index.title'), '/home' %>
16   <% if @operators.author %>
17     <%= link_to t('home.scrolls.title'), '/home/scroll' %>
18     <%= link_to t('home.panels.title'), '/home/panel' %>
19     <%= link_to t('home.panel_pictures.title'), '/home/panel_picture' %>
20     <%= link_to h(truncate(@operators.author.name, :length => 12)), main_app.author_path(@operators.author) %>
21   <% end %>
22   <% if @operators.artist %>
23     <%= link_to t('home.pictures.title'), main_app.original_pictures_path %>
24     <%= link_to h(truncate(@operators.artist.name, :length => 12)), main_app.artist_path(@operators.artist) %>
25   <% end %>
26   <%= link_to t('home.configure.title'), '/home/configure' %>
27   <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>
28 <% else %>
29   <%= link_to "sign in", main_app.new_user_session_path %>
30 <% end %>
31 </div>
32 <div>
33 <% if admin_signed_in? %>
34   <%= link_to "system", '/system' %>
35   <%= link_to "browse", '/system/browse' %>
36   <%= link_to "approve", '/system/waiting_list' %>
37   <%= link_to "token", '/system/auth_token' %>
38   <%= link_to "sign out", main_app.destroy_admin_session_path, :method => :delete %>
39 <% else %>
40   <%= link_to "sign in", main_app.new_admin_session_path %>
41 <% end %>
42 </div>
43 <div>
44   user.resources
45   <%= link_to 'scrolls', main_app.scrolls_path %>
46   <%= link_to 'scroll_panels', main_app.new_scroll_panel_path %>
47   <%= link_to 'panels', main_app.panels_path %>
48   <%= link_to 'original_pictures', main_app.original_pictures_path %>
49   <%= link_to 'resource_pictures', main_app.resource_pictures_path %>
50   <%= link_to 'panel_pictures', main_app.panel_pictures_path %>
51    : 
52   <%= link_to 'authors', main_app.authors_path %>
53   <%= link_to 'artists', main_app.artists_path %>
54 </div>
55 <div>
56   system.resources
57   <%= link_to 'speech_balloon_templates', main_app.speech_balloon_templates_path %>
58   <%= link_to 'license_groups', main_app.license_groups_path %>
59   <%= link_to 'licenses', main_app.licenses_path %>
60   <%= link_to 'system_pictures', main_app.system_pictures_path %>
61 </div>
62 <%= yield %>
63 <div>
64   <%= link_to "browse", '/system/browse' %>
65   <%= link_to "approve", '/system/waiting_list' %>
66   <%= link_to "import", '/system/import' %>
67   <%= link_to "token", '/system/auth_token' %>
68 </div>
69 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>
70
71 </body>
72 </html>