diff options
| author | hukl <contact@smyck.org> | 2009-09-12 16:15:31 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-12 16:15:31 +0200 |
| commit | 7d2d62c6e75dd0885b3fa2e029350cb474b1c653 (patch) | |
| tree | d2ba412c256d9d9f3f0543cf9e4b03fee3fa7e72 /app/views/layouts/application.html.erb | |
| parent | e6045ae5b996c3e27e5f8b94f92ef2c1f7202fc0 (diff) | |
fixed edit link bug
Diffstat (limited to 'app/views/layouts/application.html.erb')
| -rw-r--r-- | app/views/layouts/application.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b6407f6..2239c17 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb | |||
| @@ -22,7 +22,9 @@ | |||
| 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 | <% if current_user && @page.node %> |
| 26 | <%= link_to "Edit", node_path(:id => @page.node) %> | ||
| 27 | <% end %> | ||
| 26 | 28 | ||
| 27 | <%= calendar %> | 29 | <%= calendar %> |
| 28 | </div> | 30 | </div> |
