diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-06 12:52:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-06 12:52:03 +0000 |
commit | f2113e735d8d4cf8a7707ccc45d0c2570483465c (patch) | |
tree | c178d1a7b03bfbee1ba4e868c5d334499218e1ed | |
parent | a2b4bb0dfb932b4e93efe4c85ac7f65033b87f7a (diff) | |
download | redmine-f2113e735d8d4cf8a7707ccc45d0c2570483465c.tar.gz redmine-f2113e735d8d4cf8a7707ccc45d0c2570483465c.zip |
Removes the 'Copy' checkbox on the copy/move form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3127 e93f8b46-1217-0410-a6f0-8f06a7374b81
41 files changed, 85 insertions, 12 deletions
diff --git a/app/views/issues/_action_menu.rhtml b/app/views/issues/_action_menu.rhtml index 390488e6d..693b49237 100644 --- a/app/views/issues/_action_menu.rhtml +++ b/app/views/issues/_action_menu.rhtml @@ -3,7 +3,8 @@ <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time-add' %> <% replace_watcher ||= 'watcher' %> <%= watcher_tag(@issue, User.current, {:id => replace_watcher, :replace => ['watcher','watcher2']}) %> -<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %> +<%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %> +<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'move', :id => @issue, :copy_options => {:copy => 't'} }, :class => 'icon icon-copy' %> <%= link_to_if_authorized l(:button_move), {:controller => 'issues', :action => 'move', :id => @issue }, :class => 'icon icon-move' %> <%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> </div> diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml index e408e3b70..6cb05606a 100644 --- a/app/views/issues/context_menu.rhtml +++ b/app/views/issues/context_menu.rhtml @@ -98,13 +98,11 @@ <% end %> <% if @issue.present? %> - <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, - :class => 'icon-copy', :disabled => !@can[:copy] %></li> -<% else %> + <li><%= context_menu_link l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, + :class => 'icon-duplicate', :disabled => !@can[:copy] %></li> +<% end %> <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'move', :ids => @issues.collect(&:id), :copy_options => {:copy => 't'}}, :class => 'icon-copy', :disabled => !@can[:move] %></li> -<% end %> - <li><%= context_menu_link l(:button_move), {:controller => 'issues', :action => 'move', :ids => @issues.collect(&:id)}, :class => 'icon-move', :disabled => !@can[:move] %></li> <li><%= context_menu_link l(:button_delete), {:controller => 'issues', :action => 'destroy', :ids => @issues.collect(&:id)}, diff --git a/app/views/issues/move.rhtml b/app/views/issues/move.rhtml index 0d5cb130d..d63e4e66c 100644 --- a/app/views/issues/move.rhtml +++ b/app/views/issues/move.rhtml @@ -1,4 +1,4 @@ -<h2><%= l(:button_move) %></h2> +<h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2> <ul> <% @issues.each do |issue| -%> @@ -42,11 +42,14 @@ <label><%= l(:field_due_date) %></label> <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> </p> - -<p><label for="copy_options_copy"><%= l(:button_copy)%></label> -<%= check_box_tag "copy_options[copy]", "1", @copy %></p> </div> -<%= submit_tag l(:button_move) %> -<%= submit_tag l(:button_move_and_follow), :name => 'follow' %> +<% if @copy %> + <%= hidden_field_tag("copy_options[copy]", "1") %> + <%= submit_tag l(:button_copy) %> + <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> +<% else %> + <%= submit_tag l(:button_move) %> + <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> +<% end %> <% end %> diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 04d266e05..2e9b24785 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -842,3 +842,5 @@ bg: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/bs.yml b/config/locales/bs.yml index 57289116a..70d95cfa6 100644 --- a/config/locales/bs.yml +++ b/config/locales/bs.yml @@ -866,3 +866,5 @@ bs: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 37e8a7449..11daf4fb2 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -845,3 +845,5 @@ ca: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/cs.yml b/config/locales/cs.yml index a237b226f..c6b783740 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -848,3 +848,5 @@ cs: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/da.yml b/config/locales/da.yml index 1353b0658..18954df9b 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -868,3 +868,5 @@ da: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/de.yml b/config/locales/de.yml index ce92fea42..38df64dbf 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -868,3 +868,5 @@ de: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/el.yml b/config/locales/el.yml index 475bf6d9c..74faa7306 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -848,3 +848,5 @@ el: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/en.yml b/config/locales/en.yml index f3750a9a1..184788eee 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -753,10 +753,12 @@ en: button_rename: Rename button_change_password: Change password button_copy: Copy + button_copy_and_follow: Copy and follow button_annotate: Annotate button_update: Update button_configure: Configure button_quote: Quote + button_duplicate: Duplicate status_active: active status_registered: registered diff --git a/config/locales/es.yml b/config/locales/es.yml index 409eb139a..14e0494c3 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -889,3 +889,5 @@ es: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 304966465..bc5ea3e08 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -878,3 +878,5 @@ fi: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/fr.yml b/config/locales/fr.yml index d1ea2608b..b39907c50 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -769,10 +769,12 @@ fr: button_rename: Renommer button_change_password: Changer de mot de passe button_copy: Copier + button_copy_and_follow: Copier et suivre button_annotate: Annoter button_update: Mettre à jour button_configure: Configurer button_quote: Citer + button_duplicate: Dupliquer status_active: actif status_registered: enregistré diff --git a/config/locales/gl.yml b/config/locales/gl.yml index 9c734eccc..7c6b4b30b 100644 --- a/config/locales/gl.yml +++ b/config/locales/gl.yml @@ -868,3 +868,5 @@ gl: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/he.yml b/config/locales/he.yml index c15bd51f5..f9c926cb9 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -852,3 +852,5 @@ he: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/hu.yml b/config/locales/hu.yml index ddf055036..a78c5ce70 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -873,3 +873,5 @@ label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/it.yml b/config/locales/it.yml index 1bf5c1ab5..4a3d76718 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -855,3 +855,5 @@ it: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/ja.yml b/config/locales/ja.yml index ab54db063..0ff9e0f0d 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -877,3 +877,5 @@ ja: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 8b3ad9994..d27df3aef 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -908,3 +908,5 @@ ko: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/lt.yml b/config/locales/lt.yml index dfd3bcd64..fe4c8eb4f 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -878,3 +878,5 @@ lt: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 33d3854d4..f481d3b48 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -830,3 +830,5 @@ nl: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/no.yml b/config/locales/no.yml index 104d0cb56..2e2057161 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -843,3 +843,5 @@ label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 4dc267c5d..b97f731c8 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -871,3 +871,5 @@ pl: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index d10820cd7..ec3291519 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -874,3 +874,5 @@ pt-BR: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 004e64879..02ef3d4e2 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -860,3 +860,5 @@ pt: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/ro.yml b/config/locales/ro.yml index 48ae95eb5..38c80977d 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -845,3 +845,5 @@ ro: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 4341f51d9..61c73ed3d 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -956,3 +956,5 @@ ru: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/sk.yml b/config/locales/sk.yml index c6cae4643..fb5cca3eb 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -847,3 +847,5 @@ sk: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/sl.yml b/config/locales/sl.yml index ce9c702ce..2ec4cfb4f 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -844,3 +844,5 @@ sl: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 3351a57b5..52db52401 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -863,3 +863,5 @@ label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/sv.yml b/config/locales/sv.yml index d1296ce95..9536719ce 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -896,3 +896,5 @@ sv: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/th.yml b/config/locales/th.yml index 10d522163..a3838e8f1 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -845,3 +845,5 @@ th: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/tr.yml b/config/locales/tr.yml index 16fea8738..8c58be628 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -875,3 +875,5 @@ tr: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/uk.yml b/config/locales/uk.yml index eadbfd382..4e018fb81 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -844,3 +844,5 @@ uk: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/vi.yml b/config/locales/vi.yml index 43f4e1038..1067b463b 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -907,3 +907,5 @@ vi: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index 26f18294c..81faf7d7f 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -939,3 +939,5 @@ label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/config/locales/zh.yml b/config/locales/zh.yml index a627ff45e..f4609c867 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -872,3 +872,5 @@ zh: label_version_sharing_tree: With project tree label_version_sharing_none: Not shared error_can_not_archive_project: This project can not be archived + button_duplicate: Duplicate + button_copy_and_follow: Copy and follow diff --git a/public/images/copy.png b/public/images/copy.png Binary files differindex dccaa0614..be7a17ba8 100644 --- a/public/images/copy.png +++ b/public/images/copy.png diff --git a/public/images/duplicate.png b/public/images/duplicate.png Binary files differnew file mode 100644 index 000000000..eabadf156 --- /dev/null +++ b/public/images/duplicate.png diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 7f5d1b2b7..8f328a2da 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -694,6 +694,7 @@ vertical-align: middle; .icon-add { background-image: url(../images/add.png); } .icon-edit { background-image: url(../images/edit.png); } .icon-copy { background-image: url(../images/copy.png); } +.icon-duplicate { background-image: url(../images/duplicate.png); } .icon-del { background-image: url(../images/delete.png); } .icon-move { background-image: url(../images/move.png); } .icon-save { background-image: url(../images/save.png); } |