diff --git a/groups/app/controllers/groups_controller.rb b/groups/app/controllers/groups_controller.rb index b259fc320..0a1dbf04c 100644 --- a/groups/app/controllers/groups_controller.rb +++ b/groups/app/controllers/groups_controller.rb @@ -25,7 +25,6 @@ class GroupsController < ApplicationController # GET /groups.xml def index @groups = Group.find(:all, :order => 'name') - @group = Group.new respond_to do |format| format.html # index.html.erb diff --git a/groups/app/views/groups/index.html.erb b/groups/app/views/groups/index.html.erb index 65f43c970..4620a1054 100644 --- a/groups/app/views/groups/index.html.erb +++ b/groups/app/views/groups/index.html.erb @@ -1,3 +1,7 @@ +
+<%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %> +
+

<%= l(:label_group_plural) %>

<% if @groups.any? %> @@ -19,7 +23,3 @@ <% else %>

<%= l(:label_no_data) %>

<% end %> - -<% form_for(@group) do |f| %> -

-<% end %>