プロジェクト

全般

プロフィール

QA #321

奈良 裕記 さんが4年以上前に更新

h3. ■現象/要望 

 チケット変更履歴の表示順を「新しい順」に設定した場合、編集モードの入力欄を最新の履歴欄の上に移動したい。 
 現在は、入力欄が履歴の後に固定されており、コメントが多いとスクロールが大変で操作性が悪い。 

 h3. ■解決策 

 本家に下記パッチが掲載されています。 
 当面はこちらを利用ください。賛成時は+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 

 h3. ■対応状況 

 パッチ対応済 

 h3. ■補足 

 ↓関連 
 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? %> 


 !https://unofficial-redmine.org/matomo/matomo.php?idsite=1&rec=1! 

戻る