OSDN Git Service

48ca2deb13bb2ad77f6a697814f9ee028f85ec32
[pettanr/pettanr.git] / app / views / layouts / test.html.erb
1 <!DOCTYPE html>\r
2 <html>\r
3 <head>\r
4   <title>Pettanr</title>\r
5   <%= stylesheet_link_tag "test.css" %>\r
6   <%= javascript_include_tag "application" %>\r
7   <%= csrf_meta_tags %>\r
8 </head>\r
9 <body>\r
10 \r
11 <div>\r
12 <% if user_signed_in? %>\r
13   <%= link_to t('home.index.title'), '/home' %>\r
14   <%= link_to t('home.comic.title'), '/home/comic' %>\r
15   <%= link_to t('home.panel.title'), '/home/panel' %>\r
16   <%= link_to t('home.panel_picture.title'), '/home/panel_picture' %>\r
17   <%= link_to h(truncate(@author.name, :length => 12)), main_app.author_path(@author) %>\r
18   <% if @artist %>\r
19     <%= link_to t('home.picture.title'), main_app.original_pictures_path %>\r
20     <%= link_to h(truncate(@artist.name, :length => 12)), main_app.artist_path(@artist) %>\r
21   <% end %>\r
22   <%= link_to t('home.configure.title'), '/home/configure' %>\r
23   <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>\r
24 <% else %>\r
25   <%= link_to "sign in", main_app.new_user_session_path %>\r
26 <% end %>\r
27 </div>\r
28 <div>\r
29 <% if admin_signed_in? %>\r
30   <%= link_to "system", '/system' %>\r
31   <%= link_to "browse", '/system/browse' %>\r
32   <%= link_to "approve", '/system/waiting_list' %>\r
33   <%= link_to "token", '/system/auth_token' %>\r
34   layout:\r
35   <%= link_to "test", '/system/test_layout' %>\r
36   <%= link_to "production", '/system/production_layout' %>\r
37   <%= link_to "sign out", main_app.destroy_admin_session_path, :method => :delete %>\r
38 <% else %>\r
39   <%= link_to "sign in", main_app.new_admin_session_path %>\r
40 <% end %>\r
41 </div>\r
42 <div>\r
43 user.resources\r
44 <%= link_to t_m('Comic'), main_app.comics_path %>\r
45 <%= link_to t_m('Story'), main_app.new_story_path %>\r
46 <%= link_to t_m('Panel'), main_app.panels_path %>\r
47 <%= link_to t_m('ResourcePicture'), main_app.resource_pictures_path %>\r
48 <%= link_to t_m('PanelPicture'), main_app.panel_pictures_path %>\r
49 <%= link_to t_m('GroundPicture'), main_app.ground_pictures_path %>\r
50 <%= link_to t_m('GroundColor'), main_app.ground_colors_path %>\r
51 <%= link_to t_m('PanelColor'), main_app.panel_colors_path %>\r
52  : \r
53 <%= link_to t_m('Author'), main_app.authors_path %>\r
54 <%= link_to t_m('Artist'), main_app.artists_path %>\r
55 </div>\r
56 <div>\r
57 system.resources\r
58 <%= link_to 'speech_balloon_templates', main_app.speech_balloon_templates_path %>\r
59 <%= link_to 'license_groups', main_app.license_groups_path %>\r
60 <%= link_to 'licenses', main_app.licenses_path %>\r
61 <%= link_to 'colors', main_app.colors_path %>\r
62 <%= link_to 'system_pictures', main_app.system_pictures_path %>\r
63 </div>\r
64 <%= yield %>\r
65 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
66 \r
67 </body>\r
68 </html>\r