Displays thumbnails of attached images of the issue view (#1006).

This behaviour can be turned on/off in Settings -> Display (off by default). Thumbnail size can be configured there too.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9933 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-07 13:48:07 +00:00
parent b0bd506201
commit a0c495b953
20 changed files with 253 additions and 7 deletions

View File

@@ -45,6 +45,10 @@ class RoutingAttachmentsTest < ActionController::IntegrationTest
{ :controller => 'attachments', :action => 'download', :id => '1',
:filename => 'filename.ext' }
)
assert_routing(
{ :method => 'get', :path => "/attachments/thumbnail/1" },
{ :controller => 'attachments', :action => 'thumbnail', :id => '1' }
)
assert_routing(
{ :method => 'delete', :path => "/attachments/1" },
{ :controller => 'attachments', :action => 'destroy', :id => '1' }