Preliminary (?) Interface for Deleting Uploaded Files.

The simplest thing which could possibly work ...
This commit is contained in:
Jacques Distler 2008-12-30 03:03:02 -06:00
parent 1b8bf36702
commit 5700d4513f
6 changed files with 76 additions and 6 deletions

View file

@ -17,6 +17,7 @@ ActionController::Routing::Routes.draw do |map|
connect_to_web map, ':web/edit_web', :controller => 'admin', :action => 'edit_web'
connect_to_web map, ':web/remove_orphaned_pages', :controller => 'admin', :action => 'remove_orphaned_pages'
connect_to_web map, ':web/remove_orphaned_pages_in_category', :controller => 'admin', :action => 'remove_orphaned_pages_in_category'
connect_to_web map, ':web/file/delete/:id', :controller => 'file', :action => 'delete', :requirements => {:id => /[-._\w]+/}, :id => nil
connect_to_web map, ':web/files/:id', :controller => 'file', :action => 'file', :requirements => {:id => /[-._\w]+/}, :id => nil
connect_to_web map, ':web/import/:id', :controller => 'file', :action => 'import'
connect_to_web map, ':web/login', :controller => 'wiki', :action => 'login'