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:
- 569 Bytes
1 | module ContentState |
2 | class JustMarkedAsSpam < Spam |
3 | def enter_hook(content) |
4 | logger.debug("#{content} entering state Content::JustMarkedAsSpam") |
5 | content[:published] = false |
6 | content[:status_confirmed] = true |
7 | end |
8 | |
9 | def exit_hook(content, target_state) |
10 | logger.debug("#{content} leaving state Content::JustMarkedAsSpam") |
11 | end |
12 | |
13 | def memento |
14 | 'ContentState::Spam' |
15 | end |
16 | |
17 | def after_save(content) |
18 | super |
19 | content.report_as_spam |
20 | true |
21 | end |
22 | |
23 | def just_changed_published_status? |
24 | true |
25 | end |
26 | end |
27 | end |