Commit 17948951 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #1234 from studiofrenetic/fix-admin-hook-tab

Fix current class for hooks tab in admin section
parents 0456dd72 6641761e
...@@ -110,7 +110,7 @@ module ApplicationHelper ...@@ -110,7 +110,7 @@ module ApplicationHelper
when :admin_root; controller.controller_name == "dashboard" when :admin_root; controller.controller_name == "dashboard"
when :admin_users; controller.controller_name == 'users' when :admin_users; controller.controller_name == 'users'
when :admin_projects; controller.controller_name == "projects" when :admin_projects; controller.controller_name == "projects"
when :admin_emails; controller.controller_name == 'mailer' when :admin_hooks; controller.controller_name == 'hooks'
when :admin_resque; controller.controller_name == 'resque' when :admin_resque; controller.controller_name == 'resque'
when :admin_logs; controller.controller_name == 'logs' when :admin_logs; controller.controller_name == 'logs'
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
= link_to "Users", admin_users_path = link_to "Users", admin_users_path
%li{class: tab_class(:admin_logs)} %li{class: tab_class(:admin_logs)}
= link_to "Logs", admin_logs_path = link_to "Logs", admin_logs_path
%li{class: tab_class(:admin_emails)} %li{class: tab_class(:admin_hooks)}
= link_to "Hooks", admin_hooks_path = link_to "Hooks", admin_hooks_path
%li{class: tab_class(:admin_resque)} %li{class: tab_class(:admin_resque)}
= link_to "Resque", admin_resque_path = link_to "Resque", admin_resque_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment