summaryrefslogtreecommitdiffstats
path: root/app/views/layouts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-17 09:49:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-17 09:49:41 +0000
commit0a9b0dd46c917cacb6b04298c0d1aa3a0055a473 (patch)
treec32dd3d1ad5ba91357045fb87a7ed533f9ca0e6d /app/views/layouts
parent7017874cc971d77448eb81ece974d061b2ca3a30 (diff)
downloadredmine-0a9b0dd46c917cacb6b04298c0d1aa3a0055a473.tar.gz
redmine-0a9b0dd46c917cacb6b04298c0d1aa3a0055a473.zip
Move download link to contextual area (#26035).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16672 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_file.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/layouts/_file.html.erb b/app/views/layouts/_file.html.erb
index 24bfd1843..eb11f9931 100644
--- a/app/views/layouts/_file.html.erb
+++ b/app/views/layouts/_file.html.erb
@@ -1,10 +1,12 @@
+<div class="contextual">
+ <%= link_to_attachment @attachment, :text => "#{l(:button_download)} (#{number_to_human_size(@attachment.filesize)})", :download => true, :class => 'icon icon-download' -%>
+</div>
+
<h2><%=h @attachment.filename %></h2>
<div class="attachments">
<p><%= "#{@attachment.description} - " unless @attachment.description.blank? %>
<span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
-<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true, :class => 'icon icon-download' -%>
- <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
</div>
<%= yield %>