1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-11 13:15:20 +00:00

Move attachments to their own section in issue page (#29033).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17619 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2018-11-04 07:26:29 +00:00
parent 4e6b519fb0
commit 2f1c9f5411
2 changed files with 6 additions and 5 deletions

View File

@ -75,9 +75,8 @@ end %>
<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
</div>
<% if @issue.description? || @issue.attachments.any? -%>
<hr />
<% if @issue.description? %>
<hr />
<div class="description">
<div class="contextual">
<%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if @issue.notes_addable? %>
@ -89,8 +88,11 @@ end %>
</div>
</div>
<% end %>
<%= link_to_attachments @issue, :thumbnails => true %>
<% end -%>
<% if @issue.attachments.any? %>
<hr />
<p><strong><%=l(:label_attachment_plural)%></strong></p>
<%= link_to_attachments @issue, :thumbnails => true %>
<% end %>
<%= render_full_width_custom_fields_rows(@issue) %>

View File

@ -795,7 +795,6 @@ a.remove-upload:hover {text-decoration:none !important;}
div.fileover { background-color: lavender; }
div.attachments { margin: 12px 0; }
div.attachments p { margin:4px 0 2px 0; }
div.attachments img { vertical-align: middle; }
div.attachments span.author { font-size: 0.9em; color: #888; }