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:
- 746 Bytes
1 | class Page < Content |
2 | belongs_to :user |
3 | validates_presence_of :name, :title, :body |
4 | validates_uniqueness_of :name |
5 | |
6 | content_fields :body |
7 | |
8 | def self.default_order |
9 | 'name ASC' |
10 | end |
11 | |
12 | def location(anchor=nil, only_path=true) |
13 | typo_deprecated "Use permalink_url" |
14 | permalink_url(anchor, only_path) |
15 | end |
16 | |
17 | def permalink_url(anchor=nil, only_path=true) |
18 | blog.url_for( |
19 | :controller => '/articles', |
20 | :action => 'view_page', |
21 | :name => name, |
22 | :anchor => anchor, |
23 | :only_path => only_path |
24 | ) |
25 | end |
26 | |
27 | def edit_url |
28 | blog.url_for(:controller => "/admin/pages", :action =>"edit", :id => id) |
29 | end |
30 | |
31 | def delete_url |
32 | blog.url_for(:controller => "/admin/pages", :action =>"destroy", :id => id) |
33 | end |
34 | end |