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:
- 1325 Bytes
1 | class Admin::CategoriesController < Admin::BaseController |
2 | |
3 | def index |
4 | list |
5 | render_action 'list' |
6 | end |
7 | |
8 | def list |
9 | @categories = Category.find(:all, :order => :position) |
10 | end |
11 | |
12 | def show |
13 | @category = Category.find(params[:id]) |
14 | end |
15 | |
16 | def new |
17 | @category = Category.new(params[:category]) |
18 | |
19 | if request.post? and @category.save |
20 | flash[:notice] = 'Category was successfully created.' |
21 | else |
22 | flash[:error] = 'Category could not be created.' |
23 | end |
24 | |
25 | redirect_to :action => 'list' |
26 | end |
27 | |
28 | def edit |
29 | @category = Category.find(params[:id]) |
30 | @category.attributes = params[:category] |
31 | if request.post? and @category.save |
32 | flash[:notice] = 'Category was successfully updated.' |
33 | redirect_to :action => 'list' |
34 | end |
35 | end |
36 | |
37 | def destroy |
38 | @category = Category.find(params[:id]) |
39 | if request.post? |
40 | @category.destroy |
41 | redirect_to :action => 'list' |
42 | end |
43 | end |
44 | |
45 | def order |
46 | Category.reorder(params[:category_list]) |
47 | render :nothing => true |
48 | end |
49 | |
50 | def asort |
51 | Category.reorder_alpha |
52 | category_container |
53 | end |
54 | |
55 | def category_container |
56 | @categories = Category.find(:all, :order => :position) |
57 | render :partial => "categories" |
58 | end |
59 | |
60 | def reorder |
61 | @categories = Category.find(:all, :order => :position) |
62 | render :layout => false |
63 | end |
64 | end |