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:
- 1164 Bytes
1 | class Admin::TrackbacksController < Admin::BaseController |
2 | |
3 | before_filter :get_article |
4 | |
5 | def index |
6 | list |
7 | render_action 'list' |
8 | end |
9 | |
10 | def list |
11 | @trackbacks = @article.trackbacks.find(:all, :order => "id DESC") |
12 | end |
13 | |
14 | def show |
15 | @trackback = @article.trackbacks.find(params[:id]) |
16 | end |
17 | |
18 | def new |
19 | @trackback = @article.trackbacks.build(params[:trackback]) |
20 | |
21 | if request.post? and @trackback.save |
22 | flash[:notice] = 'Trackback was successfully created.' |
23 | redirect_to :action => 'show', :id => @trackback.id |
24 | end |
25 | end |
26 | |
27 | def edit |
28 | @trackback = @article.trackbacks.find(params[:id]) |
29 | @trackback.attributes = params[:trackback] |
30 | if request.post? and @trackback.save |
31 | flash[:notice] = 'Trackback was successfully updated.' |
32 | redirect_to :action => 'show', :id => @trackback.id |
33 | end |
34 | end |
35 | |
36 | def destroy |
37 | @trackback = @article.trackbacks.find(params[:id]) |
38 | if request.post? |
39 | @trackback.destroy |
40 | redirect_to :action => 'list' |
41 | end |
42 | end |
43 | |
44 | private |
45 | |
46 | def get_article |
47 | @article = Article.find(params[:article_id]) |
48 | |
49 | if @article.nil? |
50 | redirect_to '/admin' |
51 | end |
52 | end |
53 | |
54 | end |