Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 2
- Log:
Initial import of Instiki 0.11.0 sources from a downloaded Tarball.
Instiki is a Ruby On Rails based Wiki clone.
- Author:
- adh
- Date:
- Sat Jul 22 14:54:51 +0100 2006
- Size:
- 1815 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 | ActionController::Routing::Routes.draw do |map| |
12 | map.connect 'create_system', :controller => 'admin', :action => 'create_system' |
13 | map.connect 'create_web', :controller => 'admin', :action => 'create_web' |
14 | map.connect 'remove_orphaned_pages', :controller => 'admin', :action => 'remove_orphaned_pages' |
15 | map.connect 'web_list', :controller => 'wiki', :action => 'web_list' |
16 | |
17 | connect_to_web map, ':web/edit_web', :controller => 'admin', :action => 'edit_web' |
18 | connect_to_web map, ':web/files/:id', :controller => 'file', :action => 'file' |
19 | connect_to_web map, ':web/import/:id', :controller => 'file', :action => 'import' |
20 | connect_to_web map, ':web/login', :controller => 'wiki', :action => 'login' |
21 | connect_to_web map, ':web/web_list', :controller => 'wiki', :action => 'web_list' |
22 | connect_to_web map, ':web/show/diff/:id', :controller => 'wiki', :action => 'show', :mode => 'diff' |
23 | connect_to_web map, ':web/revision/diff/:id', :controller => 'wiki', :action => 'revision', :mode => 'diff' |
24 | connect_to_web map, ':web/:action/:id', :controller => 'wiki' |
25 | connect_to_web map, ':web/:action', :controller => 'wiki' |
26 | connect_to_web map, ':web', :controller => 'wiki', :action => 'index' |
27 | |
28 | if defined? DEFAULT_WEB |
29 | map.connect '', :controller => 'wiki', :web => DEFAULT_WEB, :action => 'index' |
30 | else |
31 | map.connect '', :controller => 'wiki', :action => 'index' |
32 | end |
33 | end |