OSDN Git Service

try sort
[pettanr/pettanr.git] / app / views / layouts / test.html.erb
1 <!DOCTYPE html>\r
2 <html>\r
3 <head>\r
4   <title>\r
5     <% if @page_title %>\r
6       <%= h @page_title %>\r
7     <% else %>\r
8       <%= t("#{params[:controller]}.#{params[:action]}.title") %>\r
9     <% end %>\r
10     - <%= h(MagicNumber['profile']['users']['caption']) %>\r
11   </title>\r
12   <%= stylesheet_link_tag "test.css" %>\r
13   <%= stylesheet_link_tag "jquery-ui.css" %>\r
14   <%= javascript_include_tag "application" %>\r
15   <%= csrf_meta_tags %>\r
16 </head>\r
17 <body>\r
18 \r
19 <div width="100%">\r
20 <table class="no-border">\r
21   <tr>\r
22     <td width="50%">\r
23       <h3><%= link_to MagicNumber['profile']['users']['caption'], main_app.root_path %></h3>\r
24     </td>\r
25     <td width="30%">\r
26       <% if user_signed_in? %>\r
27         <%= link_to t('top.metro.title'), '/top/metro' %>\r
28       <% end %>\r
29     </td>\r
30     <td>\r
31       <div>\r
32         <% if @author %>\r
33           <%= link_to h(truncate(@author.name, :length => 12)), main_app.author_path(@author) %>\r
34         <% end %>\r
35       </div>\r
36       <div>\r
37         <% if @artist %>\r
38           <%= link_to h(truncate(@artist.name, :length => 12)), main_app.artist_path(@artist) %>\r
39         <% end %>\r
40       </div>\r
41     </td>\r
42     <td>\r
43       <% if user_signed_in? %>\r
44         <%= link_to t('home.configure.title'), '/home/configure' %>\r
45         <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>\r
46       <% else %>\r
47         <%= link_to "sign in", main_app.new_user_session_path %>\r
48       <% end %>\r
49   </td>\r
50   </tr>\r
51 </table>\r
52 </div>\r
53 <div width="100%" style="background-color: #ddfadd; padding: 5px;">\r
54   <%= link_to t('tab.reader.title'), '/' %>\r
55   <%= link_to t_m('Comic'), main_app.comics_path %>\r
56   <%= link_to t_m('Panel'), main_app.panels_path %>\r
57   <%= link_to t_m('ResourcePicture'), main_app.resource_pictures_path %>\r
58    : \r
59   <%= link_to t_m('Author'), main_app.authors_path %>\r
60   <%= link_to t_m('Artist'), main_app.artists_path %>\r
61 </div>\r
62 <% if @author %>\r
63   <div width="100%" style="background-color: #fadddd; padding: 5px;">\r
64     <%= link_to t('tab.creator.home'), '/home' %>\r
65     <%= link_to t('tab.creator.comic'), '/home/comics' %>\r
66     <%= link_to t('tab.creator.panel'), '/home/panels' %>\r
67     <% if @artist %>\r
68       <%= link_to t('tab.creator.picture'), main_app.original_pictures_path %>\r
69     <% end %>\r
70   </div>\r
71 <% end %>\r
72 <%= yield %>\r
73 <div width="100%" style="background-color: #faddfa; padding: 5px;">\r
74   <%= link_to t('tab.demander.title'), main_app.demanders_path %>\r
75   <% if demand_user_signed_in? %>\r
76     <%= link_to t_m('Demander'), main_app.demanders_path %>\r
77     <%= link_to t('home.sign_out.title'), main_app.destroy_demand_user_session_path, :method => :delete %>\r
78   <% else %>\r
79     <%= link_to t('home.sign_in.title'), main_app.new_demand_user_session_path %>\r
80   <% end %>\r
81 </div>\r
82 <div width="100%" style="background-color: #ddddfa; padding: 5px;">\r
83   <%= link_to t('tab.system.title'), '/system' %>\r
84   <% if admin_signed_in? %>\r
85     <%= link_to t('tab.system.browse'), '/system/browse' %>\r
86     <%= link_to t('tab.system.approve'), '/system/waiting_list' %>\r
87     <%= link_to t('tab.system.port'), '/system/import' %>\r
88     <%= link_to t('tab.system.token'), '/system/auth_token' %>\r
89     <%= t('tab.system.layout') %>:\r
90     <%= link_to t('tab.system.test'), '/system/test_layout' %>\r
91     <%= link_to t('tab.system.production'), '/system/production_layout' %>\r
92     <%= link_to t('home.sign_out.title'), main_app.destroy_admin_session_path, :method => :delete %>\r
93   <% else %>\r
94     <%= link_to t('home.sign_in.title'), main_app.new_admin_session_path %>\r
95   <% end %>\r
96 </div>\r
97 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
98 \r
99 </body>\r
100 </html>\r