プロジェクト

全般

プロフィール

Vote #78500

完了

More visually consistent download links

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

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

0%

予定工数:
category_id:
10
version_id:
119
issue_org_id:
26035
author_id:
347
assigned_to_id:
1
comments:
8
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

As a follow-up to #25988 and #25999, this small patch series proposes to move the file download link on previews to a more common place – the contextual area. It also introduces another link wihin the "No preview available" message to make it easier for users to download a file instead of previewing it.

Before:

!{width:600px}download_links_before.png!

After:

!{width:600px}download_links_after.png!


journals

I think that the improvement is fairly useful but unfortunately the patch cannot be applied to the current trunk (r16559) cleanly. Could you tell me how can I apply them?

<pre>
$ patch -p1 < 0001-Move-download-link-to-contextual-area.patch
patching file app/views/layouts/_file.html.erb
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file app/views/layouts/_file.html.erb.rej
patching file app/views/repositories/_link_to_functions.html.erb
Reversed (or previously applied) patch detected! Assume -R? [n]
</pre>
--------------------------------------------------------------------------------
Go MAEDA wrote:
> I think that the improvement is fairly useful but unfortunately the patch cannot be applied to the current trunk (r16559) cleanly. Could you tell me how can I apply them?

I am sorry, I failed to mention that #25999 and therefore #25988 are required for this patch to apply cleanly.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Jan from Planio www.plan.io wrote:
> I am sorry, I failed to mention that #25999 and therefore #25988 are required for this patch to apply cleanly.

Thanks, the patch works fine now.
This small patch makes #25988 and #25999 even better and I think it should be merged along with those issues. Setting target version to 3.4.0.

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

--------------------------------------------------------------------------------
My two cents based on the screenshots:

Jan from Planio www.plan.io wrote:
> [...] this small patch series proposes to move the file download link on previews to a more common place – the contextual area.

I'm not sure about this change. The current contextual area does not seem to be the best place for such a link (and an eventual 'raw' link as proposed in #25357). I kinda like the current (and #25999 's) link position (I'm aware of the fact this is really a matter of taste, which is a difficult thing design-wise...).

Jan from Planio www.plan.io wrote:
> It also introduces another link wihin the "No preview available" message to make it easier for users to download a file instead of previewing it.

Nice one.

--------------------------------------------------------------------------------
Mischa The Evil wrote:

> I'm not sure about this change. The current contextual area does not seem to be the best place for such a link (and an eventual 'raw' link as proposed in #25357). I kinda like the current (and #25999 's) link position (I'm aware of the fact this is really a matter of taste, which is a difficult thing design-wise...).

Yes, I was not sure as well but it seems better than the download link below the tabs after all. Patches are committed, thanks.
--------------------------------------------------------------------------------

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


related_issues

relates,New,25357,"Raw view" of a file in repository
relates,Closed,26350,Don't display file download button while on repository directory entries
blocks,Closed,25999,View repository content by default (instead of the history)

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

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

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

いいね!0
いいね!0