Commit 17948951ff0787570972eff925ab4703821238fe
Exists in
master
and in
4 other branches
Merge pull request #1234 from studiofrenetic/fix-admin-hook-tab
Fix current class for hooks tab in admin section
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
| ... | ... | @@ -110,7 +110,7 @@ module ApplicationHelper |
| 110 | 110 | when :admin_root; controller.controller_name == "dashboard" |
| 111 | 111 | when :admin_users; controller.controller_name == 'users' |
| 112 | 112 | when :admin_projects; controller.controller_name == "projects" |
| 113 | - when :admin_emails; controller.controller_name == 'mailer' | |
| 113 | + when :admin_hooks; controller.controller_name == 'hooks' | |
| 114 | 114 | when :admin_resque; controller.controller_name == 'resque' |
| 115 | 115 | when :admin_logs; controller.controller_name == 'logs' |
| 116 | 116 | ... | ... |
app/views/layouts/admin.html.haml
| ... | ... | @@ -14,7 +14,7 @@ |
| 14 | 14 | = link_to "Users", admin_users_path |
| 15 | 15 | %li{class: tab_class(:admin_logs)} |
| 16 | 16 | = link_to "Logs", admin_logs_path |
| 17 | - %li{class: tab_class(:admin_emails)} | |
| 17 | + %li{class: tab_class(:admin_hooks)} | |
| 18 | 18 | = link_to "Hooks", admin_hooks_path |
| 19 | 19 | %li{class: tab_class(:admin_resque)} |
| 20 | 20 | = link_to "Resque", admin_resque_path | ... | ... |