OSDN Git Service

merge i18n
[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 width="100%">\r
12 <table class="no-border">\r
13   <tr>\r
14     <td width="80%">\r
15       <h3>PettanR</h3>\r
16     </td>\r
17     <td>\r
18       <div>\r
19         <% if @author %>\r
20           <%= link_to h(truncate(@author.name, :length => 12)), main_app.author_path(@author) %>\r
21         <% end %>\r
22       </div>\r
23       <div>\r
24         <% if @artist %>\r
25           <%= link_to h(truncate(@artist.name, :length => 12)), main_app.artist_path(@artist) %>\r
26         <% end %>\r
27       </div>\r
28     </td>\r
29     <td>\r
30       <%= link_to t('home.configure.title'), '/home/configure' %>\r
31       <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>\r
32     </td>\r
33   </tr>\r
34 </table>\r
35 </div>\r
36 <div width="100%" style="background-color: #ddfadd; padding: 5px;">\r
37   <%= link_to t('tab.reader.title'), '/' %>\r
38   <%= link_to t_m('Comic'), main_app.comics_path %>\r
39   <%= link_to t_m('Panel'), main_app.panels_path %>\r
40   <%= link_to t_m('ResourcePicture'), main_app.resource_pictures_path %>\r
41    : \r
42   <%= link_to t_m('Author'), main_app.authors_path %>\r
43   <%= link_to t_m('Artist'), main_app.artists_path %>\r
44 </div>\r
45 <div width="100%" style="background-color: #fadddd; padding: 5px;">\r
46   <% if user_signed_in? %>\r
47     <%= link_to t('tab.creator.home'), '/home' %>\r
48     <%= link_to t('tab.creator.comic'), '/home/comic' %>\r
49     <%= link_to t('tab.creator.panel'), '/home/panel' %>\r
50     <% if @artist %>\r
51       <%= link_to t('tab.creator.picture'), main_app.original_pictures_path %>\r
52     <% end %>\r
53   <% else %>\r
54     <%= link_to "sign in", main_app.new_user_session_path %>\r
55   <% end %>\r
56 </div>\r
57 <%= yield %>\r
58 <div>\r
59   demanders\r
60   <% if demand_user_signed_in? %>\r
61     <%= link_to "demanders", main_app.demanders_path %>\r
62     <%= link_to "sign out", main_app.destroy_demand_user_session_path, :method => :delete %>\r
63   <% else %>\r
64     <%= link_to "sign in", main_app.new_demand_user_session_path %>\r
65   <% end %>\r
66 </div>\r
67 <div width="100%" style="background-color: #ddddfa; padding: 5px;">\r
68   <% if admin_signed_in? %>\r
69     <%= link_to t('tab.system.title'), '/system' %>\r
70     <%= link_to "browse", '/system/browse' %>\r
71     <%= link_to "approve", '/system/waiting_list' %>\r
72     <%= link_to "token", '/system/auth_token' %>\r
73     layout:\r
74     <%= link_to "test", '/system/test_layout' %>\r
75     <%= link_to "production", '/system/production_layout' %>\r
76     <%= link_to "sign out", main_app.destroy_admin_session_path, :method => :delete %>\r
77   <% else %>\r
78     <%= link_to "sign in", main_app.new_admin_session_path %>\r
79   <% end %>\r
80 </div>\r
81 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
82 \r
83 </body>\r
84 </html>\r