瀏覽代碼

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
tags/4.0.0
Go MAEDA 5 年之前
父節點
當前提交
2f1c9f5411
共有 2 個文件被更改,包括 6 次插入5 次删除
  1. 6
    4
      app/views/issues/show.html.erb
  2. 0
    1
      public/stylesheets/application.css

+ 6
- 4
app/views/issues/show.html.erb 查看文件

@@ -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) %>


+ 0
- 1
public/stylesheets/application.css 查看文件

@@ -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; }

Loading…
取消
儲存