OSDN Git Service

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