From 32c75677ca9b0eb067b275e65585c776f16bc299 Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Thu, 14 Jun 2018 20:07:52 +0000 Subject: [PATCH] move attachments to their own section --- app/views/issues/show.html.erb | 10 ++++++---- public/stylesheets/application.css | 1 - 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index f1f2791..0923106 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -75,9 +75,8 @@ end %> <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> -<% if @issue.description? || @issue.attachments.any? -%> -
<% if @issue.description? %> +
<%= 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 %>
<% end %> -<%= link_to_attachments @issue, :thumbnails => true %> -<% end -%> +<% if @issue.attachments.any? %> +
+

<%=l(:label_attachment_plural)%>

+ <%= link_to_attachments @issue, :thumbnails => true %> +<% end %> <%= render_full_width_custom_fields_rows(@issue) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index a47d985..af53b78 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -781,7 +781,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; } -- 2.1.4