summaryrefslogtreecommitdiffstats
path: root/app/views/calendars/show.html.erb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-08-17 12:41:58 +0000
committerGo MAEDA <maeda@farend.jp>2021-08-17 12:41:58 +0000
commit33b5cf1c7316b7bd176c2ecead46b962faaadda0 (patch)
tree3da09641d80e7efb4f10fe18dc7aca0244b2116b /app/views/calendars/show.html.erb
parent001252d966508dac4d9bf29a8a4487d811c00b8f (diff)
downloadredmine-33b5cf1c7316b7bd176c2ecead46b962faaadda0.tar.gz
redmine-33b5cf1c7316b7bd176c2ecead46b962faaadda0.zip
Rename the save, edit and delete buttons on the query form to clarify the scope (#34494).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21191 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/calendars/show.html.erb')
-rw-r--r--app/views/calendars/show.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb
index 93cd12a2a..cf870116f 100644
--- a/app/views/calendars/show.html.erb
+++ b/app/views/calendars/show.html.erb
@@ -28,13 +28,13 @@
<%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %>
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
<% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %>
- <%= link_to_function l(:button_save),
+ <%= link_to_function l(:button_save_object, object_name: l(:label_query).downcase),
"$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit();",
:class => 'icon icon-save' %>
<% end %>
<% if !@query.new_record? && @query.editable_by?(User.current) %>
- <%= link_to l(:button_edit), edit_query_path(@query, :calendar => 1), :class => 'icon icon-edit' %>
- <%= delete_link query_path(@query, :calendar => 1) %>
+ <%= link_to l(:button_edit_object, object_name: l(:label_query).downcase), edit_query_path(@query, :calendar => 1), :class => 'icon icon-edit' %>
+ <%= delete_link query_path(@query, :calendar => 1), {}, l(:button_delete_object, object_name: l(:label_query).downcase) %>
<% end %>
</p>
</div>