Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 2749 Bytes
1 | class VirtualPage < Page |
2 | def virtual? |
3 | true |
4 | end |
5 | end |
6 | |
7 | class PagesDataset < Dataset::Base |
8 | uses :home_page |
9 | |
10 | def load |
11 | create_page "First" |
12 | create_page "Another" |
13 | create_page "Radius", :body => "<r:title />" |
14 | create_page "Parent" do |
15 | create_page "Child" do |
16 | create_page "Grandchild" do |
17 | create_page "Great Grandchild" |
18 | end |
19 | end |
20 | create_page "Child 2" |
21 | create_page "Child 3" |
22 | end |
23 | create_page "Childless" |
24 | create_page "Assorted", :keywords => "sweet & harmonious biscuits", :description => "sweet & harmonious biscuits" do |
25 | breadcrumbs = %w(f e d c b a j i h g) |
26 | %w(a b c d e f g h i j).each_with_index do |name, i| |
27 | create_page name, :breadcrumb => breadcrumbs[i], :published_at => Time.now - (10 - i).minutes |
28 | end |
29 | create_page "Assorted Draft", :status_id => Status[:draft].id, :slug => "draft" |
30 | create_page "Assorted Virtual", :class_name => "VirtualPage", :virtual => true, :slug => "virtual" |
31 | end |
32 | create_page "News" do |
33 | create_page "Article", :published_at => DateTime.parse('2000-12-01 08:41:07') |
34 | create_page "Article 2", :published_at => DateTime.parse('2001-02-09 08:42:04') |
35 | create_page "Article 3", :published_at => DateTime.parse('2001-02-24 12:02:43') |
36 | create_page "Article 4", :published_at => DateTime.parse('2001-03-06 03:32:31') |
37 | create_page "Draft Article",:status_id => Status[:draft].id |
38 | end |
39 | create_page "Draft", :status_id => Status[:draft].id |
40 | create_page "Hidden", :status_id => Status[:hidden].id |
41 | date = Time.utc(2006, 1, 11) |
42 | create_page "Dated", :published_at => date, :created_at => (date - 1.day), :updated_at => (date + 1.day) |
43 | create_page "Scheduled", :published_at => (Time.now + 1.day), :status_id => Status[:scheduled].id |
44 | |
45 | create_page "Devtags" do |
46 | create_page_part "if_dev", :content => "<r:if_dev>dev</r:if_dev>" |
47 | create_page_part "unless_dev", :content => "<r:unless_dev>not dev</r:unless_dev>" |
48 | end |
49 | create_page "Virtual", :class_name => "VirtualPage", :virtual => true |
50 | create_page "Party" do |
51 | create_page_part "favors" |
52 | create_page_part "games" |
53 | create_page "Guests" |
54 | end |
55 | create_page "Recursive parts" do |
56 | create_page_part "recursive_body", :name => "body", :content => "<r:content />" |
57 | create_page_part "recursive_one", :name => "one", :content => '<r:content part="two" />' |
58 | create_page_part "recursive_two", :name => "two", :content => '<r:content part="one" />' |
59 | create_page_part "repetitive_part", :name => "repeat", |
60 | :content => '<r:content part="beat"/><r:content part="beat"/>' |
61 | create_page_part "repeated_part", :name => "beat", :content => 'x' |
62 | end |
63 | end |
64 | |
65 | end |