OSDN Git Service

iroiro
[pettanr/pettanr.git] / app / views / layouts / application.html.erb
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <title>Pettanr</title>
5   <%= stylesheet_link_tag    "application" %>
6   <%= javascript_include_tag "application" %>
7   <%= csrf_meta_tags %>
8 </head>
9 <body>
10
11 <a href="/">ぺったんR</a>
12 <div>
13 <% if author_signed_in? %>
14   <%= link_to "my home", :controller => '/home' %>
15   <%= link_to "my comics", :controller => '/home', :action => :comic %>
16   <%= link_to "my pictures", :controller => '/home', :action => :picture %>
17   <%= link_to "config", :controller => '/home', :action => :configure %>
18   <%= link_to "ログアウト", destroy_author_session_path, :method => :delete %>
19 <% else %>
20   <%= link_to "ログイン", new_author_session_path %>
21 <% end %>
22 </div>
23 <div>
24  <p class="notice"><%= notice %></p>
25  <p class="alert"><%= alert %></p>
26 </div>
27 <%= yield %>
28
29 <div>
30 <% if admin_signed_in? %>
31   <%= link_to "system", :controller => '/system' %>
32   <%= link_to "ログアウト", destroy_admin_session_path, :method => :delete %>
33 <% else %>
34   <%= link_to "管理者", new_admin_session_path %>
35 <% end %>
36 </div>
37 </body>
38 </html>