Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 3129 Bytes
1 | ActionController::Routing::Routes.draw do |map| |
2 | |
3 | # default |
4 | map.index '', :controller => 'articles', :action => 'index' |
5 | map.admin 'admin', :controller => 'admin/general', :action => 'index' |
6 | |
7 | # admin/comments controller needs parent article id |
8 | map.connect 'admin/comments/article/:article_id/:action/:id', |
9 | :controller => 'admin/comments', :action => nil, :id => nil |
10 | map.connect 'admin/trackback/article/:article_id/:action/:id', |
11 | :controller => 'admin/trackback', :action => nil, :id => nil |
12 | map.connect 'admin/content/:action/:id', :controller => 'admin/content' |
13 | |
14 | # make rss feed urls pretty and let them end in .xml |
15 | # this improves caches_page because now apache and webrick will send out the |
16 | # cached feeds with the correct xml mime type. |
17 | map.xml 'xml/:action/feed.xml', :controller => 'xml' |
18 | map.xml 'xml/articlerss/:id/feed.xml', :controller => 'xml', :action => 'articlerss' |
19 | |
20 | # allow neat perma urls |
21 | map.connect 'articles', |
22 | :controller => 'articles', :action => 'index' |
23 | map.connect 'articles/page/:page', |
24 | :controller => 'articles', :action => 'index', |
25 | :page => /\d+/ |
26 | |
27 | map.connect 'articles/:year/:month/:day/page/:page', |
28 | :controller => 'articles', :action => 'find_by_date', |
29 | :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/, :page => /\d+/ |
30 | map.connect 'articles/:year/:month/page/:page', |
31 | :controller => 'articles', :action => 'find_by_date', |
32 | :year => /\d{4}/, :month => /\d{1,2}/, :page => /\d+/ |
33 | map.connect 'articles/:year/page/:page', |
34 | :controller => 'articles', :action => 'find_by_date', |
35 | :year => /\d{4}/, :page => /\d+/ |
36 | |
37 | map.connect 'articles/:year/:month/:day', |
38 | :controller => 'articles', :action => 'find_by_date', |
39 | :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/ |
40 | map.connect 'articles/:year/:month', |
41 | :controller => 'articles', :action => 'find_by_date', |
42 | :year => /\d{4}/, :month => /\d{1,2}/ |
43 | map.connect 'articles/:year', |
44 | :controller => 'articles', :action => 'find_by_date', |
45 | :year => /\d{4}/ |
46 | |
47 | map.connect 'articles/:year/:month/:day/:title', |
48 | :controller => 'articles', :action => 'permalink', |
49 | :year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/ |
50 | |
51 | map.connect 'articles/category/:id', |
52 | :controller => 'articles', :action => 'category' |
53 | map.connect 'articles/category/:id/page/:page', |
54 | :controller => 'articles', :action => 'category', |
55 | :page => /\d+/ |
56 | |
57 | map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' |
58 | |
59 | map.connect 'stylesheets/theme/:filename', |
60 | :controller => 'theme', :action => 'stylesheets' |
61 | map.connect 'javascript/theme/:filename', |
62 | :controller => 'theme', :action => 'javascript' |
63 | map.connect 'images/theme/:filename', |
64 | :controller => 'theme', :action => 'images' |
65 | |
66 | # Kill attempts to connect directly to the theme controller. |
67 | # Ideally we'd disable these by removing the default route (below), |
68 | # but that breaks too many things for Typo 2.5. |
69 | map.connect 'theme/*stuff', |
70 | :controller => 'theme', :action => 'error' |
71 | |
72 | # Allow legacy urls to still work |
73 | map.connect ':controller/:action/:id' |
74 | end |