Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 344
- Log:
Massive changeset which brings the old, ROOL customised Instiki
version up to date, but without any ROOL customisations in this
latest checked-in version (which is 0.19.1). This is deliberate,
so that it's easy to see the changes made for the ROOL version
in a subsequent changeset. The 'app/views/shared' directory is not
part of Instiki but is kept to maintain the change history with
updated ROOL customisations, some of which involve the same files
in that same directory.
- Author:
- rool
- Date:
- Sat Mar 19 19:52:13 +0000 2011
- Size:
- 3214 Bytes
1 | # Create a route to DEFAULT_WEB, if such is specified; also register a generic route |
2 | def connect_to_web(map, generic_path, generic_routing_options) |
3 | if defined? DEFAULT_WEB |
4 | explicit_path = generic_path.gsub(/:web\/?/, '') |
5 | explicit_routing_options = generic_routing_options.merge(:web => DEFAULT_WEB) |
6 | map.connect(explicit_path, explicit_routing_options) |
7 | end |
8 | map.connect(generic_path, generic_routing_options) |
9 | end |
10 | |
11 | # :id's can be arbitrary junk |
12 | id_regexp = /.+/ |
13 | |
14 | ActionController::Routing::Routes.draw do |map| |
15 | map.connect 'create_system', :controller => 'admin', :action => 'create_system' |
16 | map.connect 'create_web', :controller => 'admin', :action => 'create_web' |
17 | map.connect 'delete_web', :controller => 'admin', :action => 'delete_web' |
18 | map.connect 'delete_files', :controller => 'admin', :action => 'delete_files' |
19 | map.connect 'web_list', :controller => 'wiki', :action => 'web_list' |
20 | |
21 | connect_to_web map, ':web/edit_web', :controller => 'admin', :action => 'edit_web' |
22 | connect_to_web map, ':web/remove_orphaned_pages', :controller => 'admin', :action => 'remove_orphaned_pages' |
23 | connect_to_web map, ':web/remove_orphaned_pages_in_category', :controller => 'admin', :action => 'remove_orphaned_pages_in_category' |
24 | connect_to_web map, ':web/file/delete/:id', :controller => 'file', :action => 'delete', :requirements => {:id => /[-._\w]+/}, :id => nil |
25 | connect_to_web map, ':web/files/pngs/:id', :controller => 'file', :action => 'blahtex_png', :requirements => {:id => /[-._\w]+/}, :id => nil |
26 | connect_to_web map, ':web/files/:id', :controller => 'file', :action => 'file', :requirements => {:id => /[-._\w]+/}, :id => nil |
27 | connect_to_web map, ':web/file_list/:sort_order', :controller => 'wiki', :action => 'file_list', :sort_order => nil |
28 | connect_to_web map, ':web/import/:id', :controller => 'file', :action => 'import' |
29 | connect_to_web map, ':web/login', :controller => 'wiki', :action => 'login' |
30 | connect_to_web map, ':web/web_list', :controller => 'wiki', :action => 'web_list' |
31 | connect_to_web map, ':web/show/diff/:id', :controller => 'wiki', :action => 'show', :mode => 'diff', :requirements => {:id => id_regexp} |
32 | connect_to_web map, ':web/revision/diff/:id/:rev', :controller => 'wiki', :action => 'revision', :mode => 'diff', |
33 | :requirements => { :rev => /\d+/, :id => id_regexp} |
34 | connect_to_web map, ':web/revision/:id/:rev', :controller => 'wiki', :action => 'revision', :requirements => { :rev => /\d+/, :id => id_regexp} |
35 | connect_to_web map, ':web/list/:category', :controller => 'wiki', :action => 'list', :requirements => { :category => /.*/}, :category => nil |
36 | connect_to_web map, ':web/recently_revised/:category', :controller => 'wiki', :action => 'recently_revised', :requirements => { :category => /.*/}, :category => nil |
37 | connect_to_web map, ':web/:action/:id', :controller => 'wiki', :requirements => {:id => id_regexp} |
38 | connect_to_web map, ':web/:action', :controller => 'wiki' |
39 | connect_to_web map, ':web', :controller => 'wiki', :action => 'index' |
40 | |
41 | if defined? DEFAULT_WEB |
42 | map.connect '', :controller => 'wiki', :web => DEFAULT_WEB, :action => 'index' |
43 | else |
44 | map.connect '', :controller => 'wiki', :action => 'index' |
45 | end |
46 | end |