Manage Uploaded Files
A less abstruse interface for deleting files (this time, many at-a-shot). Available from the Edit Web page.
This commit is contained in:
parent
788d1eb075
commit
1d3f7007c6
7 changed files with 58 additions and 2 deletions
|
@ -46,6 +46,10 @@ class Web < ActiveRecord::Base
|
|||
def has_file?(file_name)
|
||||
WikiFile.find_by_file_name(file_name) != nil
|
||||
end
|
||||
|
||||
def file_list
|
||||
WikiFile.find(:all, :order => 'file_name')
|
||||
end
|
||||
|
||||
def description(file_name)
|
||||
file = WikiFile.find_by_file_name(file_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue