OSDN Git Service

t#29325:add server result
[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 "my home", '/home' %>\r
14   <%= link_to 'my comics', '/home/comic' %>\r
15   <%= link_to 'my panels', '/home/panel' %>\r
16   <%= link_to 'my pictures', main_app.original_pictures_path %>\r
17   <%= link_to 'my panel pictures', '/home/panel_picture' %>\r
18   <%= link_to 'configure', '/home/configure' %>\r
19   <%= link_to "sign out", main_app.destroy_user_session_path, :method => :delete %>\r
20 <% else %>\r
21   <%= link_to "sign in", main_app.new_user_session_path %>\r
22 <% end %>\r
23 </div>\r
24 <div>\r
25 <% if admin_signed_in? %>\r
26   <%= link_to "system", '/system' %>\r
27   <%= link_to "browse", '/system/browse' %>\r
28   <%= link_to "approve", '/system/waiting_list' %>\r
29   <%= link_to "token", '/system/auth_token' %>\r
30   layout:\r
31   <%= link_to "test", '/system/test_layout' %>\r
32   <%= link_to "production", '/system/production_layout' %>\r
33   <%= link_to "sign out", main_app.destroy_admin_session_path, :method => :delete %>\r
34 <% else %>\r
35   <%= link_to "sign in", main_app.new_admin_session_path %>\r
36 <% end %>\r
37 </div>\r
38 <div>\r
39  <p class="notice"><%= notice %></p>\r
40  <p class="alert"><%= alert %></p>\r
41 <%= link_to 'comics', main_app.comics_path %>\r
42 <%= link_to 'stories', main_app.new_story_path %>\r
43 <%= link_to 'panels', main_app.panels_path %>\r
44 <%= link_to 'original_pictures', main_app.original_pictures_path %>\r
45 <%= link_to 'resource_pictures', main_app.resource_pictures_path %>\r
46 <%= link_to 'panel_pictures', main_app.panel_pictures_path %>\r
47  : \r
48 <%= link_to 'speech_balloon_templates', main_app.speech_balloon_templates_path %>\r
49 <%= link_to 'colors', main_app.colors_path %>\r
50  : \r
51 <%= link_to 'artists', main_app.artists_path %>\r
52 <%= link_to 'system_pictures', main_app.system_pictures_path %>\r
53 </div>\r
54 <%= yield %>\r
55 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
56 \r
57 </body>\r
58 </html>\r