Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 178
- Log:
Hub integration of Beast forum. Completed styling for RISC OS Open site.
Removed reliance on JavaScript. Added Textile hints to various views.
Added bespoke utility code used to port over RForum data for posterity;
note the rather large bug that it ignores the deleted flag on RForum
data.Some amount of testing carried out on Firefox, Opera and Netsurf. Looks
OK so far, but there are definitely some aesthetic kinks to work out
still and doubtless some operational bugs will surface once it goes
live and is subjected to more intensive real world use.
- Author:
- rool
- Date:
- Mon Mar 12 00:19:40 +0000 2007
- Size:
- 2062 Bytes
1 | PATH_PREFIX ||= '' |
2 | |
3 | ActionController::Routing::Routes.draw do |map| |
4 | map.home PATH_PREFIX + '/', :controller => 'forums', :action => 'index' |
5 | |
6 | map.resources :sessions, :path_prefix => PATH_PREFIX |
7 | |
8 | map.resources :users, :path_prefix => PATH_PREFIX, :member => { :admin => :post } do |user| |
9 | user.resources :moderators |
10 | end |
11 | |
12 | map.resources :forums, :path_prefix => PATH_PREFIX do |forum| |
13 | forum.resources :topics do |topic| |
14 | topic.resources :posts, :monitorships |
15 | end |
16 | end |
17 | |
18 | # Fake DELETE requests to the monitorships controller result in a |
19 | # routing error with default Beast routes. |
20 | |
21 | map.connect PATH_PREFIX + '/forums/:forum_id/topics/:topic_id/monitorships/destroy', :controller => 'monitorships', :action => 'destroy' |
22 | |
23 | map.resources :posts, :name_prefix => 'all_', :path_prefix => PATH_PREFIX, :collection => { :search => :get } |
24 | |
25 | %w(user forum).each do |attr| |
26 | map.resources :posts, :name_prefix => "#{attr}_", :path_prefix => PATH_PREFIX + "/#{attr.pluralize}/:#{attr}_id" |
27 | end |
28 | |
29 | map.signup PATH_PREFIX + '/signup', :controller => 'users', :action => 'new' |
30 | map.settings PATH_PREFIX + '/settings', :controller => 'users', :action => 'edit' |
31 | map.activate PATH_PREFIX + '/activate/:key', :controller => 'users', :action => 'activate' |
32 | map.login PATH_PREFIX + '/login', :controller => 'sessions', :action => 'new' |
33 | map.logout PATH_PREFIX + '/logout', :controller => 'sessions', :action => 'destroy' |
34 | map.with_options :controller => 'posts', :action => 'monitored' do |map| |
35 | map.formatted_monitored_posts PATH_PREFIX + '/users/:user_id/monitored.:format' |
36 | map.monitored_posts PATH_PREFIX + '/users/:user_id/monitored' |
37 | end |
38 | |
39 | map.exceptions PATH_PREFIX + '/logged_exceptions/:action/:id', :controller => 'logged_exceptions', :action => 'index', :id => nil |
40 | |
41 | # Old-fashioned route for backwards compatibility with RForum's |
42 | # global feed location |
43 | # |
44 | map.exceptions PATH_PREFIX + '/feed/global', :controller => 'posts', :action => 'index_rss' |
45 | end |