Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1274 Bytes
1 | class Admin::BlacklistController < Admin::BaseController |
2 | def index |
3 | list |
4 | render_action 'list' |
5 | end |
6 | |
7 | def list |
8 | @blacklist_patterns = BlacklistPattern.find :all |
9 | end |
10 | |
11 | def show |
12 | @blacklist_pattern = BlacklistPattern.find(params[:id]) |
13 | end |
14 | |
15 | def new |
16 | @blacklist_pattern = BlacklistPattern.new |
17 | |
18 | if params[:blacklist_pattern].has_key?('type') |
19 | @blacklist_pattern = case params[:blacklist_pattern][:type] |
20 | when "StringPattern": StringPattern.new |
21 | when "RegexPattern": RegexPattern.new |
22 | end |
23 | end rescue nil |
24 | |
25 | @blacklist_pattern.attributes = params[:blacklist_pattern] |
26 | |
27 | if request.post? and @blacklist_pattern.save |
28 | flash[:notice] = 'BlacklistPattern was successfully created.' |
29 | redirect_to :action => 'list' |
30 | end |
31 | end |
32 | |
33 | def edit |
34 | @blacklist_pattern = BlacklistPattern.find(params[:id]) |
35 | @blacklist_pattern.attributes = params[:blacklist_pattern] |
36 | if request.post? and @blacklist_pattern.save |
37 | flash[:notice] = 'BlacklistPattern was successfully updated.' |
38 | redirect_to :action => 'list' |
39 | end |
40 | end |
41 | |
42 | def destroy |
43 | @blacklist_pattern = BlacklistPattern.find(params[:id]) |
44 | if request.post? |
45 | @blacklist_pattern.destroy |
46 | redirect_to :action => 'list' |
47 | end |
48 | end |
49 | |
50 | end |