OSDN Git Service

b4da561f11f642eb203538bfca151c637013b3c6
[pettanr/pettanr.git] / app / views / layouts / ap.html.erb
1 <!DOCTYPE html>\r
2 <html>\r
3 <head>\r
4   <title>\r
5     ap - <%= h(manifest.magic_numbers['profile']['users']['caption']) %>\r
6   </title>\r
7   <%# stylesheet_link_tag "application" %>\r
8   <%= javascript_include_tag "application" %>\r
9   <%= javascript_include_tag "ap" %>\r
10   <%# raw panel_editor_javascript_include_tags %>\r
11   <%= csrf_meta_tags %>\r
12   <script type="text/javascript">\r
13     I18n.defaultLocale = "<%= I18n.default_locale %>";\r
14     I18n.locale = "<%= I18n.locale %>";\r
15     I18n.fallbacks = true;\r
16   </script>\r
17 </head>\r
18 <body>\r
19 \r
20 <div width="100%">\r
21 <table class="no-border">\r
22   <tr>\r
23     <td width="50%">\r
24       <h3><%= link_to manifest.magic_numbers['profile']['users']['caption'], main_app.root_path %></h3>\r
25     </td>\r
26     <td width="30%">\r
27       <% if user_signed_in? %>\r
28         <%# link_to t('top.metro.title'), '/top/metro' %>\r
29       <% end %>\r
30     </td>\r
31     <td>\r
32       <div>\r
33         <% if @operators.author %>\r
34           <%= link_to h(truncate(@operators.author.name, :length => 12)), main_app.author_path(@operators.author) %>\r
35         <% end %>\r
36       </div>\r
37       <div>\r
38         <% if @operators.artist %>\r
39           <%= link_to h(truncate(@operators.artist.name, :length => 12)), main_app.artist_path(@operators.artist) %>\r
40         <% end %>\r
41       </div>\r
42     </td>\r
43     <td>\r
44       <% if user_signed_in? %>\r
45         <%= link_to t('home.configure.title'), '/home/configure' %>\r
46         <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>\r
47       <% else %>\r
48         <%= link_to "sign in", main_app.new_user_session_path %>\r
49       <% end %>\r
50   </td>\r
51   </tr>\r
52 </table>\r
53 </div>\r
54 <%= yield %>\r
55 <div width="100%" style="background-color: #faddfa; padding: 5px;">\r
56   <%= link_to t('tab.demander.title'), main_app.demanders_path %>\r
57   <% if demand_user_signed_in? %>\r
58     <%= link_to t_m('Demander'), main_app.demanders_path %>\r
59     <%= link_to t('home.sign_out.title'), main_app.destroy_demand_user_session_path, :method => :delete %>\r
60   <% else %>\r
61     <%= link_to t('home.sign_in.title'), main_app.new_demand_user_session_path %>\r
62   <% end %>\r
63 </div>\r
64 <div width="100%" style="background-color: #ddddfa; padding: 5px;">\r
65   <%= link_to t('tab.system.title'), '/system' %>\r
66   <% if admin_signed_in? %>\r
67     <%= link_to t('tab.system.browse'), '/system/browse' %>\r
68     <%= link_to t('tab.system.approve'), '/system/waiting_list' %>\r
69     <%= link_to t('tab.system.port'), '/system/import' %>\r
70     <%= link_to t('tab.system.token'), '/system/auth_token' %>\r
71     <%= link_to t('home.sign_out.title'), main_app.destroy_admin_session_path, :method => :delete %>\r
72   <% else %>\r
73     <%= link_to t('home.sign_in.title'), main_app.new_admin_session_path %>\r
74   <% end %>\r
75 </div>\r
76 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
77 \r
78 </body>\r
79 </html>\r