Project

General

Profile

Actions

Feature #26035

closed

More visually consistent download links

Added by Jan from Planio www.plan.io almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

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:

After:


Files

download_links_after.png (114 KB) download_links_after.png Jan from Planio www.plan.io, 2017-05-24 18:50
download_links_before.png (108 KB) download_links_before.png Jan from Planio www.plan.io, 2017-05-24 18:50
0001-Move-download-link-to-contextual-area.patch (3.1 KB) 0001-Move-download-link-to-contextual-area.patch Jan from Planio www.plan.io, 2017-05-24 18:51
0002-Add-download-link-to-no-preview-message.patch (5.72 KB) 0002-Add-download-link-to-no-preview-message.patch Jan from Planio www.plan.io, 2017-05-24 18:51
0003-German-translation-for-download.patch (945 Bytes) 0003-German-translation-for-download.patch Jan from Planio www.plan.io, 2017-05-24 18:51

Related issues

Related to Redmine - Feature #25357: "Raw view" of a file in repositoryNew

Actions
Related to Redmine - Defect #26350: Don't display file download button while on repository directory entriesClosedJean-Philippe Lang

Actions
Blocked by Redmine - Feature #25999: View repository content by default (instead of the history)ClosedJean-Philippe Lang

Actions
Actions #1

Updated by Go MAEDA almost 7 years ago

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?

$ 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]
Actions #2

Updated by Jan from Planio www.plan.io almost 7 years ago

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.

Actions #3

Updated by Jan from Planio www.plan.io almost 7 years ago

  • Blocked by Feature #25999: View repository content by default (instead of the history) added
Actions #4

Updated by Go MAEDA almost 7 years ago

  • Target version changed from Candidate for next minor release to 3.4.0

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.

Actions #5

Updated by Mischa The Evil almost 7 years ago

Actions #6

Updated by Mischa The Evil almost 7 years ago

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.

Actions #7

Updated by Jean-Philippe Lang almost 7 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

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.

Actions #8

Updated by Mischa The Evil over 6 years ago

  • Related to Defect #26350: Don't display file download button while on repository directory entries added
Actions

Also available in: Atom PDF