Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.67 kb
class UploadManagerExtension < Radiant::Extension
define_routes do |map|
map.connect 'files/browse', :controller => 'file_upload', :action => 'browse'
map.connect 'files/upload', :controller => 'file_upload', :action => 'upload'
map.connect 'files/new_folder', :controller => 'file_upload', :action => 'new_folder'
map.connect 'files/delete', :controller => 'file_upload', :action => 'destroy'
map.connect 'admin/upload_manager', :controller => 'file_upload', :action => 'index'
end
def activate
admin.tabs.add "Upload Manager", "/admin/upload_manager", :visibility => [:all]
end
def deactivate
admin.tabs.remove "Upload Manager"
end
end
Jump to Line
Something went wrong with that request. Please try again.