From ad1e0403b18cc3cc7ecf071191e00909d7250564 Mon Sep 17 00:00:00 2001 From: Akihiro MATOBA Date: Sat, 19 Jun 2021 06:13:49 +0000 Subject: [PATCH 1/2] apply 0001b at https://www.redmine.org/issues/3143#note-35 --- app/views/issues/_action_menu.html.erb | 3 +++ app/views/issues/_action_menu_edit.html.erb | 2 +- app/views/issues/_edit.html.erb | 2 +- config/locales/en.yml | 1 + public/javascripts/application.js | 14 ++++++++++++++ public/stylesheets/application.css | 2 +- 6 files changed, 21 insertions(+), 3 deletions(-) diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb index 1904f21711..d37fd889ab 100644 --- a/app/views/issues/_action_menu.html.erb +++ b/app/views/issues/_action_menu.html.erb @@ -1,4 +1,7 @@
+<%= link_to l(:button_add_notes), edit_issue_path(@issue), + :onclick => 'showAndScrollToAddNotes(); return false;', + :class => 'icon icon-add' if @issue.editable? %> <%= link_to l(:button_edit), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %> diff --git a/app/views/issues/_action_menu_edit.html.erb b/app/views/issues/_action_menu_edit.html.erb index a189d7c453..322726c37a 100644 --- a/app/views/issues/_action_menu_edit.html.erb +++ b/app/views/issues/_action_menu_edit.html.erb @@ -3,7 +3,7 @@
<% if @issue.editable? %> -