プロジェクト

全般

プロフィール

Vote #71448

完了

Show images in repositories inline when clicking the 'View' link

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
3
version_id:
47
issue_org_id:
10362
author_id:
51126
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

message#29308

Currently, when you click the "View" link for image files in repositories views,
image files are downloaded.
I would like image files to be displayed inline.

For your information, in issues views, when you click image file links,
image files are displayed inline.

So, not only it is more convenient but also it is more consistent with this change.
Please review this patch and include it if it is OK.


journals

it seems a nice improvement. thanks.
--------------------------------------------------------------------------------
I like the use of @Redmine::MimeType@.

Side note: maybe it could also be used in the places indicated by Toshi in #9638?

--------------------------------------------------------------------------------
I tested patch in trunk r9249.

*View* and *Download* links display the picture. While this is OK for *View*, *Download* should not display but download the picture.
--------------------------------------------------------------------------------
Patch changed to force then download when clicking "Download" + test added. Committed in r9776.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン2.1.0_47 にセット

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

いいね!0
いいね!0