Feature #7056 » diff_v7_and_v8.patch
| app/views/attachments/_links.html.erb | ||
|---|---|---|
|
:title => l(:label_edit_attachments),
|
||
|
:class => 'icon-only icon-edit'
|
||
|
) if options[:editable] %>
|
||
|
<%= link_to(l(:label_download_all_attachments),
|
||
|
container_attachments_download_path(container),
|
||
|
:title => l(:label_download_all_attachments),
|
||
|
:class => 'icon-only icon-download'
|
||
|
) if attachments.size > 1 %>
|
||
|
</div>
|
||
|
<table>
|
||
|
<% for attachment in attachments %>
|
||
| ... | ... | |
|
</div>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
<% if attachments.size > 1 %>
|
||
|
<div class="bulk-download">
|
||
|
<%= link_to(l(:label_download_all_attachments),
|
||
|
container_attachments_download_path(container),
|
||
|
:title => l(:label_download_all_attachments),
|
||
|
:class => 'icon icon-download'
|
||
|
) %>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
</div>
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
div.attachments img { vertical-align: middle; }
|
||
|
div.attachments span.author { font-size: 0.9em; color: #888; }
|
||
|
div.bulk-download { margin-top: 1em; margin-left: 0.3em; margin-bottom: 0.4em;}
|
||
|
div.thumbnails {margin:0.6em;}
|
||
|
div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;}
|
||
|
div.thumbnails img {margin: 3px; vertical-align: middle;}
|
||
| test/integration/routing/attachments_test.rb | ||
|---|---|---|
|
should_route 'GET /attachments/issues/1/edit' => 'attachments#edit_all', :object_type => 'issues', :object_id => '1'
|
||
|
should_route 'PATCH /attachments/issues/1' => 'attachments#update_all', :object_type => 'issues', :object_id => '1'
|
||
|
should_route 'GET /attachments/issues/1/download' => 'attachments#download_all', :object_type => 'issues', :object_id => '1'
|
||
|
end
|
||
|
end
|
||