プロジェクト

全般

プロフィール

Vote #76109

未完了

Add ability to display diff directly in comment

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
19226
author_id:
20632
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

For example, right now we're able to write r12345 and Redmine will parse it and display a link to the revision or changeset. However, it would be useful to be able to use specific syntax to have Redmine display the diff directly in the comment.

Existing format:

マクロ thumbnail の実行中にエラーが発生しました (添付ファイル existing_diff_view.png が見つかりません)

or as CodeRay would display it:


Index: field_format.rb
===================================================================
--- field_format.rb (revision 12344)
+++ field_format.rb (revision 12345)
@@ -315,7 +315,7 @@
       end
 
       def edit_tag(view, tag_id, tag_name, custom_value, options={})
-        view.hidden_field_tag(tag_name, '0') +
+        view.hidden_field_tag(tag_name, '0', :id => nil) +
           view.check_box_tag(tag_name, '1', custom_value.true?, options.merge(:id => tag_id))
       end

Thanks for your consideration!


journals

!existing_diff_view.png!

Not sure what happened in the OP. Bad copy/paste I guess.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0