summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-02 21:05:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-02 21:05:43 +0000
commit184aae5bf2ad0028446bd2f4c486465eaeef1615 (patch)
treea24664c59f1edbbbd0740f5cf785dfe8d3dc4f5e
parentc05194716187bbed4a778927f037c2cb41ef9668 (diff)
downloadredmine-184aae5bf2ad0028446bd2f4c486465eaeef1615.tar.gz
redmine-184aae5bf2ad0028446bd2f4c486465eaeef1615.zip
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
-rw-r--r--app/views/issues/_attributes.rhtml9
1 files 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 @@
<p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
<% unless @project.issue_categories.empty? %>
<p><%= 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') %></p>
+ :class => 'small',
+ :title => l(:label_issue_category_new),
+ :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
<% end %>
<% unless @issue.assignable_versions.empty? %>
<p><%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %></p>