diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-25 04:35:21 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-25 04:35:21 +0200 |
| commit | 5f8cc4fa269dadc895d99eec9ef3a82b17c5890a (patch) | |
| tree | 048ffe4ef9e6b147eddbe6472312b72267d268d9 /app/views/layouts | |
| parent | f7a5944a1f44ede9881d368a36eb9f7d82d6ab69 (diff) | |
Rails 4.2 view fixes
- Replace :confirm => with :data => { :confirm => } in all link_to calls
- Fix link_to_path helper: use content_path named route instead of hash-style routing
- Fix admin/_menu.html.erb: use named routes for logout and admin index
- Fix admin layout: load jquery/jquery_ujs before jquery-ui, remove duplicate jQuery 1.3.2
- Add csrf_meta_tags to admin layout
Diffstat (limited to 'app/views/layouts')
| -rw-r--r-- | app/views/layouts/admin.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 9f36021..e64850b 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -4,9 +4,10 @@ | |||
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 5 | <head> | 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 7 | <%= csrf_meta_tags %> | ||
| 7 | 8 | ||
| 8 | <title><%= "#{params[:controller]} | #{params[:action]}" %></title> | 9 | <title><%= "#{params[:controller]} | #{params[:action]}" %></title> |
| 9 | <%= javascript_include_tag 'jquery-1.3.2.min' %> | 10 | <%= javascript_include_tag 'jquery', 'jquery_ujs' %> |
| 10 | <%= javascript_include_tag 'jquery-ui-1.7.2.custom.min' %> | 11 | <%= javascript_include_tag 'jquery-ui-1.7.2.custom.min' %> |
| 11 | <%= javascript_include_tag 'jquery.hotkeys' %> | 12 | <%= javascript_include_tag 'jquery.hotkeys' %> |
| 12 | <%= javascript_include_tag 'tiny_mce/jquery.tinymce.js' %> | 13 | <%= javascript_include_tag 'tiny_mce/jquery.tinymce.js' %> |
