OSDN Git Service

t#30444:add site profile
[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><%= link_to MagicNumber['profile']['caption'], root_path %></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       <% if user_signed_in? %>\r
31         <%= link_to t('home.configure.title'), '/home/configure' %>\r
32         <%= link_to t('home.sign_out.title'), main_app.destroy_user_session_path, :method => :delete %>\r
33       <% else %>\r
34         <%= link_to "sign in", main_app.new_user_session_path %>\r
35       <% end %>\r
36   </td>\r
37   </tr>\r
38 </table>\r
39 </div>\r
40 <div width="100%" style="background-color: #ddfadd; padding: 5px;">\r
41   <%= link_to t('tab.reader.title'), '/' %>\r
42   <%= link_to t_m('Comic'), main_app.comics_path %>\r
43   <%= link_to t_m('Panel'), main_app.panels_path %>\r
44   <%= link_to t_m('ResourcePicture'), main_app.resource_pictures_path %>\r
45    : \r
46   <%= link_to t_m('Author'), main_app.authors_path %>\r
47   <%= link_to t_m('Artist'), main_app.artists_path %>\r
48 </div>\r
49 <% if user_signed_in? %>\r
50   <div width="100%" style="background-color: #fadddd; padding: 5px;">\r
51     <%= link_to t('tab.creator.home'), '/home' %>\r
52     <%= link_to t('tab.creator.comic'), '/home/comic' %>\r
53     <%= link_to t('tab.creator.panel'), '/home/panel' %>\r
54     <% if @artist %>\r
55       <%= link_to t('tab.creator.picture'), main_app.original_pictures_path %>\r
56     <% end %>\r
57   </div>\r
58 <% end %>\r
59 <%= yield %>\r
60 <div width="100%" style="background-color: #faddfa; padding: 5px;">\r
61   <%= link_to t('tab.demander.title'), main_app.demanders_path %>\r
62   <% if demand_user_signed_in? %>\r
63     <%= link_to t_m('Demander'), main_app.demanders_path %>\r
64     <%= link_to t('home.sign_out.title'), main_app.destroy_demand_user_session_path, :method => :delete %>\r
65   <% else %>\r
66     <%= link_to t('home.sign_in.title'), main_app.new_demand_user_session_path %>\r
67   <% end %>\r
68 </div>\r
69 <div width="100%" style="background-color: #ddddfa; padding: 5px;">\r
70   <%= link_to t('tab.system.title'), '/system' %>\r
71   <% if admin_signed_in? %>\r
72     <%= link_to t('tab.system.browse'), '/system/browse' %>\r
73     <%= link_to t('tab.system.approve'), '/system/waiting_list' %>\r
74     <%= link_to t('tab.system.port'), '/system/import' %>\r
75     <%= link_to t('tab.system.token'), '/system/auth_token' %>\r
76     <%= t('tab.system.layout') %>:\r
77     <%= link_to t('tab.system.test'), '/system/test_layout' %>\r
78     <%= link_to t('tab.system.production'), '/system/production_layout' %>\r
79     <%= link_to t('home.sign_out.title'), main_app.destroy_admin_session_path, :method => :delete %>\r
80   <% else %>\r
81     <%= link_to t('home.sign_in.title'), main_app.new_admin_session_path %>\r
82   <% end %>\r
83 </div>\r
84 <%= javascript_tag 'var server_result=' + @server_result.to_json + ';' %>\r
85 \r
86 </body>\r
87 </html>\r