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:
- 696 Bytes
1 | module ContentState |
2 | class PresumedHam < Base |
3 | include Singleton |
4 | |
5 | def enter_hook(content) |
6 | super |
7 | content[:published] = true |
8 | content[:status_confirmed] = false |
9 | end |
10 | |
11 | def published?(content) |
12 | true |
13 | end |
14 | |
15 | def withdraw(content) |
16 | mark_as_spam(content) |
17 | end |
18 | |
19 | def confirm_classification(content) |
20 | mark_as_ham(content) |
21 | end |
22 | |
23 | def mark_as_ham(content) |
24 | content.state = Factory.new(:ham) |
25 | true |
26 | end |
27 | |
28 | def to_s |
29 | 'Ham?' |
30 | end |
31 | |
32 | def send_notifications(content, controller) |
33 | content.interested_users.each do |user| |
34 | content.send_notification_to_user(controller, user) |
35 | end |
36 | end |
37 | end |
38 | end |