OSDN Git Service

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