Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 1273 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 |