From a10a54b20ffe3574ab3de7ca1f7132aff01aa078 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 28 Apr 2008 15:36:48 +0000 Subject: [PATCH] Remove the new group form on group list. git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1374 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- groups/app/controllers/groups_controller.rb | 1 - groups/app/views/groups/index.html.erb | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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 %>