Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments.
Attached images can be displayed inline, using textile image tag (for wiki pages, issue descriptions and forum messages). git-svn-id: http://redmine.rubyforge.org/svn/trunk@541 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -77,7 +77,11 @@ class Attachment < ActiveRecord::Base
|
||||
def self.most_downloaded
|
||||
find(:all, :limit => 5, :order => "downloads DESC")
|
||||
end
|
||||
|
||||
|
||||
def project
|
||||
container.is_a?(Project) ? container : container.project
|
||||
end
|
||||
|
||||
private
|
||||
def sanitize_filename(value)
|
||||
# get only the filename, not the whole path
|
||||
|
||||
Reference in New Issue
Block a user