Patch #29033 » 0001-move-attachments-to-their-own-section.patch
| app/views/issues/show.html.erb | ||
|---|---|---|
| 75 | 75 |
<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
| 76 | 76 |
</div> |
| 77 | 77 | |
| 78 |
<% if @issue.description? || @issue.attachments.any? -%> |
|
| 79 |
<hr /> |
|
| 80 | 78 |
<% if @issue.description? %> |
| 79 |
<hr /> |
|
| 81 | 80 |
<div class="description"> |
| 82 | 81 |
<div class="contextual"> |
| 83 | 82 |
<%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if @issue.notes_addable? %> |
| ... | ... | |
| 89 | 88 |
</div> |
| 90 | 89 |
</div> |
| 91 | 90 |
<% end %> |
| 92 |
<%= link_to_attachments @issue, :thumbnails => true %> |
|
| 93 |
<% end -%> |
|
| 91 |
<% if @issue.attachments.any? %> |
|
| 92 |
<hr /> |
|
| 93 |
<p><strong><%=l(:label_attachment_plural)%></strong></p> |
|
| 94 |
<%= link_to_attachments @issue, :thumbnails => true %> |
|
| 95 |
<% end %> |
|
| 94 | 96 | |
| 95 | 97 |
<%= render_full_width_custom_fields_rows(@issue) %> |
| 96 | 98 | |
| public/stylesheets/application.css | ||
|---|---|---|
| 781 | 781 | |
| 782 | 782 |
div.fileover { background-color: lavender; }
|
| 783 | 783 | |
| 784 |
div.attachments { margin: 12px 0; }
|
|
| 785 | 784 |
div.attachments p { margin:4px 0 2px 0; }
|
| 786 | 785 |
div.attachments img { vertical-align: middle; }
|
| 787 | 786 |
div.attachments span.author { font-size: 0.9em; color: #888; }
|