diff options
| author | hukl <contact@smyck.org> | 2009-09-11 12:51:10 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-11 12:51:24 +0200 |
| commit | b11433f789382822e4e4955e9344c01d64cee4df (patch) | |
| tree | f23196547cec54ffa54216ff6035a15fd468ee96 | |
| parent | 6edca3b03d00ea0c79ba567a8e941febe34c662d (diff) | |
edit link on public page if user is logged in. link points to the show action so the user has the chance to rethink the decision to edit ;)
Closes #14
| -rw-r--r-- | app/views/layouts/application.html.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 0e136fb..b6407f6 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | <%= main_menu %> | 22 | <%= main_menu %> |
| 23 | 23 | ||
| 24 | <%= language_selector %> | 24 | <%= language_selector %> |
| 25 | <%= link_to( "Edit", node_path(:id => @page.node) )if current_user %> | ||
| 25 | 26 | ||
| 26 | <%= calendar %> | 27 | <%= calendar %> |
| 27 | </div> | 28 | </div> |
