QA #321
未完了履歴の表示順を「新しい順」に設定した場合、編集モードの入力欄を最新の履歴欄の上に移動したい
0%
説明
■現象/要望¶
チケット変更履歴の表示順を「新しい順」に設定した場合、編集モードの入力欄を最新の履歴欄の上に移動したい。
現在は、入力欄が履歴の後に固定されており、コメントが多いとスクロールが大変で操作性が悪い。
■解決策¶
本家に下記パッチが掲載されています。
当面はこちらを利用ください。賛成時は+1よろしく。
Feature #23518: Display comments in reverse chronological order: position of action_menu and edit partials.
http://www.redmine.org/issues/23518
DB変更無し、下記ファイルの簡単な変更のみ
app/views/issues/show.html.erb
app/views/issues/_action_menu_edit.html.erb
■対応状況¶
パッチ対応済
■補足¶
↓関連
https://toot.redmine.jp/@maeda/26282
ソース変更以外に、 テーマ、viewcustomizeなどによる対応も考えられそうです。
23518パッチ変更内容
編集画面を呼び出す部分を、_action_menu_edit.html.erb に切り出し、
履歴表示順序指定(User.current.wants_comments_in_reverse_order)で、その表示位置を切り替えている。
+<%= render partial: 'action_menu_edit' if User.current.wants_comments_in_reverse_order? %>
+<%= render partial: 'action_menu_edit' unless User.current.wants_comments_in_reverse_order? %>