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:
- 751 Bytes
1 | module ContentState |
2 | class Published < Base |
3 | include Reloadable |
4 | include Singleton |
5 | class << self |
6 | def derivable_from(content) |
7 | !content.new_record? && content.published |
8 | end |
9 | end |
10 | |
11 | def serialize_on(content) |
12 | true |
13 | end |
14 | |
15 | def published? |
16 | true |
17 | end |
18 | |
19 | def change_published_state(content, boolean) |
20 | content[:published] = boolean |
21 | if ! content.published |
22 | content[:published_at] = nil |
23 | content.state = Draft.instance |
24 | end |
25 | end |
26 | |
27 | def set_published_at(content, new_time) |
28 | content[:published_at] = new_time |
29 | return if content.published_at.nil? |
30 | if content.published_at > Time.now |
31 | content.state = JustPublished.instance |
32 | end |
33 | end |
34 | end |
35 | end |