From 54fc4a1e6b258f9d91e0cae98aed253794f3f1fc Mon Sep 17 00:00:00 2001 From: Steve Kenworthy Date: Sat, 7 Jul 2012 15:31:21 +0800 Subject: [PATCH] Highlight 'Groups' tab when selected in admin screen. --- app/controllers/admin/groups_controller.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb index eb627e27cb..808677fbe9 100644 --- a/app/controllers/admin/groups_controller.rb +++ b/app/controllers/admin/groups_controller.rb @@ -1,4 +1,22 @@ +# Fat Free CRM +# Copyright (C) 2008-2011 by Michael Dvorkin +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +#------------------------------------------------------------------------------ + class Admin::GroupsController < Admin::ApplicationController + before_filter "set_current_tab('admin/groups')", :only => [ :index, :show ] load_resource