OSDN Git Service

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