OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff2c15c
)
add logout button
author
yasushiito
<yas@pen-chan.jp>
Tue, 3 Jan 2012 10:42:26 +0000
(19:42 +0900)
committer
yasushiito
<yas@pen-chan.jp>
Tue, 3 Jan 2012 10:42:26 +0000
(19:42 +0900)
app/views/layouts/application.html.erb
patch
|
blob
|
history
diff --git
a/app/views/layouts/application.html.erb
b/app/views/layouts/application.html.erb
index
3881256
..
8522e46
100644
(file)
--- a/
app/views/layouts/application.html.erb
+++ b/
app/views/layouts/application.html.erb
@@
-17,8
+17,9
@@
<% end %>
</div>
<div>
-<% if a
uthor
_signed_in? %>
+<% if a
dmin
_signed_in? %>
<%= link_to "system", :controller => '/system' %>
+ <%= link_to "ログアウト", destroy_admin_session_path, :method => :delete %>
<% else %>
<%= link_to "管理者", new_admin_session_path %>
<% end %>