From 184aae5bf2ad0028446bd2f4c486465eaeef1615 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 2 Dec 2009 21:05:43 +0000 Subject: Replaces 'New category' link on the issue form with an icon. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3116 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_attributes.rhtml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/issues/_attributes.rhtml b/app/views/issues/_attributes.rhtml index cfa14d52d..3730d22fb 100644 --- a/app/views/issues/_attributes.rhtml +++ b/app/views/issues/_attributes.rhtml @@ -11,10 +11,13 @@

<%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %>

<% unless @project.issue_categories.empty? %>

<%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> -<%= prompt_to_remote(l(:label_issue_category_new), - l(:label_issue_category_new), 'category[name]', +<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), + l(:label_issue_category_new), + 'category[name]', {:controller => 'projects', :action => 'add_issue_category', :id => @project}, - :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %>

+ :class => 'small', + :title => l(:label_issue_category_new), + :tabindex => 199) if authorize_for('projects', 'add_issue_category') %>

<% end %> <% unless @issue.assignable_versions.empty? %>

<%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %>

-- cgit v1.2.3