Defect #37072 » Do_not_downcase_labels.patch
| app/models/query.rb | ||
|---|---|---|
| 570 | 570 |
def project_values |
| 571 | 571 |
project_values = [] |
| 572 | 572 |
if User.current.logged? |
| 573 |
project_values << ["<< #{l(:label_my_projects).downcase} >>", "mine"] if User.current.memberships.any?
|
|
| 574 |
project_values << ["<< #{l(:label_my_bookmarks).downcase} >>", "bookmarks"] if User.current.bookmarked_project_ids.any?
|
|
| 573 |
project_values << ["<< #{l(:label_my_projects)} >>", "mine"] if User.current.memberships.any?
|
|
| 574 |
project_values << ["<< #{l(:label_my_bookmarks)} >>", "bookmarks"] if User.current.bookmarked_project_ids.any?
|
|
| 575 | 575 |
end |
| 576 | 576 |
project_values += all_projects_values |
| 577 | 577 |
project_values |
| app/views/calendars/show.html.erb | ||
|---|---|---|
| 28 | 28 |
<%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
|
| 29 | 29 |
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
|
| 30 | 30 |
<% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> |
| 31 |
<%= link_to_function l(:button_save_object, object_name: l(:label_query).downcase),
|
|
| 31 |
<%= link_to_function l(:button_save_object, object_name: l(:label_query)), |
|
| 32 | 32 |
"$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit();",
|
| 33 | 33 |
:class => 'icon icon-save' %> |
| 34 | 34 |
<% end %> |
| 35 | 35 |
<% if !@query.new_record? && @query.editable_by?(User.current) %> |
| 36 |
<%= link_to l(:button_edit_object, object_name: l(:label_query).downcase), edit_query_path(@query, :calendar => 1), :class => 'icon icon-edit' %>
|
|
| 37 |
<%= delete_link query_path(@query, :calendar => 1), {}, l(:button_delete_object, object_name: l(:label_query).downcase) %>
|
|
| 36 |
<%= link_to l(:button_edit_object, object_name: l(:label_query)), edit_query_path(@query, :calendar => 1), :class => 'icon icon-edit' %> |
|
| 37 |
<%= delete_link query_path(@query, :calendar => 1), {}, l(:button_delete_object, object_name: l(:label_query)) %>
|
|
| 38 | 38 |
<% end %> |
| 39 | 39 |
</p> |
| 40 | 40 |
</div> |
| app/views/context_menus/issues.html.erb | ||
|---|---|---|
| 164 | 164 |
<li><%= context_menu_link l(:button_copy), bulk_edit_issues_path(:ids => @issue_ids, :copy => '1'), |
| 165 | 165 |
:class => 'icon icon-copy', :disabled => !@can[:copy] %></li> |
| 166 | 166 |
<% end %> |
| 167 |
<li><%= context_menu_link l(:button_delete_object, object_name: (@issue_ids.size > 1 ? l(:label_issue_plural) : l(:label_issue)).downcase), issues_path(:ids => @issue_ids, :back_url => @back),
|
|
| 167 |
<li><%= context_menu_link l(:button_delete_object, object_name: (@issue_ids.size > 1 ? l(:label_issue_plural) : l(:label_issue))), issues_path(:ids => @issue_ids, :back_url => @back), |
|
| 168 | 168 |
:method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon icon-del', :disabled => !@can[:delete] %></li>
|
| 169 | 169 | |
| 170 | 170 |
<%= call_hook(:view_issues_context_menu_end, {:issues => @issues, :can => @can, :back => @back }) %>
|
| app/views/gantts/show.html.erb | ||
|---|---|---|
| 91 | 91 |
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 },
|
| 92 | 92 |
:class => 'icon icon-reload' %> |
| 93 | 93 |
<% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> |
| 94 |
<%= link_to_function l(:button_save_object, object_name: l(:label_query).downcase),
|
|
| 94 |
<%= link_to_function l(:button_save_object, object_name: l(:label_query)), |
|
| 95 | 95 |
"$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit();",
|
| 96 | 96 |
:class => 'icon icon-save' %> |
| 97 | 97 |
<% end %> |
| 98 | 98 |
<% if !@query.new_record? && @query.editable_by?(User.current) %> |
| 99 |
<%= link_to l(:button_edit_object, object_name: l(:label_query).downcase), edit_query_path(@query, :gantt => 1), :class => 'icon icon-edit' %>
|
|
| 100 |
<%= delete_link query_path(@query, :gantt => 1), {}, l(:button_delete_object, object_name: l(:label_query).downcase) %>
|
|
| 99 |
<%= link_to l(:button_edit_object, object_name: l(:label_query)), edit_query_path(@query, :gantt => 1), :class => 'icon icon-edit' %> |
|
| 100 |
<%= delete_link query_path(@query, :gantt => 1), {}, l(:button_delete_object, object_name: l(:label_query)) %>
|
|
| 101 | 101 |
<% end %> |
| 102 | 102 |
</p> |
| 103 | 103 |
</div> |
| app/views/issues/_action_menu.html.erb | ||
|---|---|---|
| 9 | 9 |
:class => 'icon icon-copy' if User.current.allowed_to?(:copy_issues, @project) && Issue.allowed_target_projects.any? %> |
| 10 | 10 |
<%= actions_dropdown do %> |
| 11 | 11 |
<%= copy_object_url_link(issue_url(@issue, only_path: false)) %> |
| 12 |
<%= link_to l(:button_delete_object, object_name: l(:label_issue).downcase), issue_path(@issue),
|
|
| 12 |
<%= link_to l(:button_delete_object, object_name: l(:label_issue)), issue_path(@issue), |
|
| 13 | 13 |
:data => {:confirm => issues_destroy_confirmation_message(@issue)},
|
| 14 | 14 |
:method => :delete, :class => 'icon icon-del' if @issue.deletable? %> |
| 15 | 15 |
<% end %> |
| app/views/queries/_query_form.html.erb | ||
|---|---|---|
| 57 | 57 |
<%= link_to l(:button_clear), { :set_filter => 1, :sort => '', :project_id => @project }, :class => 'icon icon-reload' %>
|
| 58 | 58 |
<% if @query.new_record? %> |
| 59 | 59 |
<% if User.current.allowed_to?(:save_queries, @project, :global => true) %> |
| 60 |
<%= link_to_function l(:button_save_object, object_name: l(:label_query).downcase),
|
|
| 60 |
<%= link_to_function l(:button_save_object, object_name: l(:label_query)), |
|
| 61 | 61 |
"$('#query_type').prop('disabled',false);$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit()",
|
| 62 | 62 |
:class => 'icon icon-save' %> |
| 63 | 63 |
<% end %> |
| 64 | 64 |
<% else %> |
| 65 | 65 |
<% if @query.editable_by?(User.current) %> |
| 66 |
<%= link_to l(:button_edit_object, object_name: l(:label_query).downcase), edit_query_path(@query), :class => 'icon icon-edit' %>
|
|
| 67 |
<%= delete_link query_path(@query), {}, l(:button_delete_object, object_name: l(:label_query).downcase) %>
|
|
| 66 |
<%= link_to l(:button_edit_object, object_name: l(:label_query)), edit_query_path(@query), :class => 'icon icon-edit' %> |
|
| 67 |
<%= delete_link query_path(@query), {}, l(:button_delete_object, object_name: l(:label_query)) %>
|
|
| 68 | 68 |
<% end %> |
| 69 | 69 |
<% end %> |
| 70 | 70 |
</p> |