]> source.dussan.org Git - redmine.git/commitdiff
Move attachments to their own section in issue page (#29033).
authorGo MAEDA <maeda@farend.jp>
Sun, 4 Nov 2018 07:26:29 +0000 (07:26 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 4 Nov 2018 07:26:29 +0000 (07:26 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@17619 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/show.html.erb
public/stylesheets/application.css

index 97a2448d682f7ebff201e324b2e7c4ee2ff5396c..5a1cc8599fbc7d8c52ba105e60a0316088b850ec 100644 (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) %>
 
index ec5bb57dfdde72b8a12d7cffab6e438f583fc15a..19fb90f586dbb80fdfa4cfdd1255b17f78a0b284 100644 (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; }