Patch #29033 » 0001-move-attachments-to-their-own-section.patch
| app/views/issues/show.html.erb | ||
|---|---|---|
|
<%= 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? %>
|
||
| ... | ... | |
|
</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) %>
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
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; }
|
||