Permalink
Browse files

Added a css class to the Add action link.

Signed-off-by: Francesc Esplugas <francesc@intraducibles.com>
  • Loading branch information...
1 parent 46d9b42 commit ebf72bf4bc9d6f54461f6cb7e0133d29349f1c74 Gaston Kleiman committed with Francesc Esplugas Feb 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/admin/sidebar_helper.rb
View
2 app/helpers/admin/sidebar_helper.rb
@@ -24,7 +24,7 @@ def actions
case params[:action]
when 'index', 'edit', 'show', 'update'
if @current_user.can?('create', @resource[:class])
- items << (link_to _("Add entry"), :action => 'new')
+ items << (link_to _("Add entry"), {:action => 'new'}, :class => 'new')
end
end

0 comments on commit ebf72bf

Please sign in to comment.