プロジェクト

全般

プロフィール

Vote #63020

完了

Special handling for .diff/.patch attachments

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2008/04/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
2
issue_org_id:
1029
author_id:
340
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I suppose it's your webserver's mime type config, but if I click on a diff attached to an issue, the browser thinks it's a binary file and wants to download it. Even better than fixing that, I think, would be to treat it specially (like images) and view it in something like the SCM diff viewer.


journals

One alternative to special treatment of *.diff and *.patch... what "Launchpad":http://launchpad.net does is give you a checkbox to say the attachment is a patch. This could also trigger an indicator that someone has attached a resolution to an issue, which could be of use to developers.
--------------------------------------------------------------------------------
> I suppose it's your webserver's mime type config

Actually it's not my webserver, download is forced unless the attachment is an image:
source:/trunk/app/controllers/attachments_controller.rb#L26
--------------------------------------------------------------------------------
Diff viewer added in r1516.
Rocco, the simpliest way to tell that an issue is resolved is to mark it as 'Resolved' :-)
--------------------------------------------------------------------------------


related_issues

relates,Closed,1403,Unified Diff download feature

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

  • カテゴリUI_10 にセット
  • 対象バージョン0.8_2 にセット

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

いいね!0
いいね!0