OSDN Git Service

t#30102:update i18n op rp au ar gc gp pc
[pettanr/pettanr.git] / app / views / layouts / system.html.erb
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <title>Pettanr</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   <%= link_to t('home.comics.title'), '/home/comic' %>
15   <%= link_to t('home.panels.title'), '/home/panel' %>
16   <%= link_to t('home.panel_pictures.title'), '/home/panel_picture' %>
17   <%= link_to h(truncate(@author.name, :length => 12)), main_app.author_path(@author) %>
18   <% if @artist %>
19     <%= link_to t('home.pictures.title'), main_app.original_pictures_path %>
20     <%= link_to h(truncate(@artist.name, :length => 12)), main_app.artist_path(@artist) %>
21   <% end %>
22   <%= link_to t('home.configure.title'), '/home/configure' %>
23   <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>
24 <% else %>
25   <%= link_to "sign in", main_app.new_user_session_path %>
26 <% end %>
27 </div>
28 <div>
29 <% if admin_signed_in? %>
30   <%= link_to "system", '/system' %>
31   <%= link_to "browse", '/system/browse' %>
32   <%= link_to "approve", '/system/waiting_list' %>
33   <%= link_to "token", '/system/auth_token' %>
34   layout:
35   <%= link_to "test", '/system/test_layout' %>
36   <%= link_to "production", '/system/production_layout' %>
37   <%= link_to "sign out", main_app.destroy_admin_session_path, :method => :delete %>
38 <% else %>
39   <%= link_to "sign in", main_app.new_admin_session_path %>
40 <% end %>
41 </div>
42 <div>
43 user.resources
44 <%= link_to 'comics', main_app.comics_path %>
45 <%= link_to 'stories', main_app.new_story_path %>
46 <%= link_to 'panels', main_app.panels_path %>
47 <%= link_to 'original_pictures', main_app.original_pictures_path %>
48 <%= link_to 'resource_pictures', main_app.resource_pictures_path %>
49 <%= link_to 'panel_pictures', main_app.panel_pictures_path %>
50  : 
51 <%= link_to 'authors', main_app.authors_path %>
52 <%= link_to 'artists', main_app.artists_path %>
53 </div>
54 <div>
55 system.resources
56 <%= link_to 'speech_balloon_templates', main_app.speech_balloon_templates_path %>
57 <%= link_to 'license_groups', main_app.license_groups_path %>
58 <%= link_to 'licenses', main_app.licenses_path %>
59 <%= link_to 'colors', main_app.colors_path %>
60 <%= link_to 'system_pictures', main_app.system_pictures_path %>
61 </div>
62 <%= yield %>
63 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>
64
65 </body>
66 </html>