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:
- 1147 Bytes
1 | class Admin::PagesController < Admin::BaseController |
2 | def index |
3 | list |
4 | render_action 'list' |
5 | end |
6 | |
7 | def list |
8 | @pages = Page.find(:all, :order => "id DESC") |
9 | @page = Page.new(params[:page]) |
10 | @page.text_filter ||= this_blog.text_filter |
11 | end |
12 | |
13 | def show |
14 | @page = Page.find(params[:id]) |
15 | end |
16 | |
17 | def new |
18 | @page = Page.new(params[:page]) |
19 | @page.user_id = session[:user].id |
20 | @page.text_filter ||= this_blog.text_filter |
21 | if request.post? and @page.save |
22 | flash[:notice] = 'Page was successfully created.' |
23 | redirect_to :action => 'show', :id => @page.id |
24 | end |
25 | end |
26 | |
27 | def edit |
28 | @page = Page.find(params[:id]) |
29 | @page.attributes = params[:page] |
30 | if request.post? and @page.save |
31 | flash[:notice] = 'Page was successfully updated.' |
32 | redirect_to :action => 'show', :id => @page.id |
33 | end |
34 | end |
35 | |
36 | def destroy |
37 | @page = Page.find(params[:id]) |
38 | if request.post? |
39 | @page.destroy |
40 | redirect_to :action => 'list' |
41 | end |
42 | end |
43 | |
44 | def preview |
45 | @headers["Content-Type"] = "text/html; charset=utf-8" |
46 | @page = this_blog.pages.build(params[:page]) |
47 | render :layout => false |
48 | end |
49 | |
50 | end |